定义于 @minecraft/math.d.ts:203 构造函数constructor new Vector3Builder ( vec : Vector3 , arg ?: never , arg2 ?: never ) : Vector3Builder 参数 vec : Vector3 可选
arg : never 可选
arg2 : never 定义于 @minecraft/math.d.ts:207 new Vector3Builder ( x : number , y : number , z : number ) : Vector3Builder 参数 x : number y : number z : number 定义于 @minecraft/math.d.ts:208 属性x x : number
实现了 Vector3 .x
定义于 @minecraft/math.d.ts:204 y y : number
实现了 Vector3 .y
定义于 @minecraft/math.d.ts:205 z z : number
实现了 Vector3 .z
定义于 @minecraft/math.d.ts:206 方法add add ( v : Vector3 ) : this 返回 this 定义于 @minecraft/math.d.ts:230 assign assign ( vec : Vector3 ) : this 返回 this 定义于 @minecraft/math.d.ts:214 clamp clamp ( limits : { max ?: Partial < Vector3 > ; min ?: Partial < Vector3 > } ) : this 返回 this 定义于 @minecraft/math.d.ts:312 cross cross ( vec : Vector3 ) : this 返回 this 定义于 @minecraft/math.d.ts:261 distance distance ( vec : Vector3 ) : number 返回 number 定义于 @minecraft/math.d.ts:277 dot dot ( vec : Vector3 ) : number 返回 number 定义于 @minecraft/math.d.ts:253 equals equals ( v : Vector3 ) : boolean 返回 boolean 定义于 @minecraft/math.d.ts:222 floor floor () : this 返回 this 定义于 @minecraft/math.d.ts:293 lerp lerp ( vec : Vector3 , t : number ) : this 返回 this 定义于 @minecraft/math.d.ts:323 magnitude magnitude () : number 返回 number 定义于 @minecraft/math.d.ts:269 multiply multiply ( vec : Vector3 ) : this 返回 this 定义于 @minecraft/math.d.ts:338 normalize normalize () : this 返回 this 定义于 @minecraft/math.d.ts:285 rotateX rotateX ( a : number ) : this 返回 this 定义于 @minecraft/math.d.ts:345 rotateY rotateY ( a : number ) : this 返回 this 定义于 @minecraft/math.d.ts:352 rotateZ rotateZ ( a : number ) : this 返回 this 定义于 @minecraft/math.d.ts:359 scale scale ( val : number ) : this 返回 this 定义于 @minecraft/math.d.ts:245 slerp slerp ( vec : Vector3 , t : number ) : this 返回 this 定义于 @minecraft/math.d.ts:331 subtract subtract ( v : Vector3 ) : this 返回 this 定义于 @minecraft/math.d.ts:238 to String toString ( options ?: { decimals ?: number ; delimiter ?: string } ) : string 参数 可选
options : { decimals ?: number ; delimiter ?: string } 返回 string 定义于 @minecraft/math.d.ts:301
Vector3 wrapper class which can be used as a Vector3 for APIs on @minecraft/server which require a Vector, but also contain additional helper methods. This is an alternative to using the core Vector 3 utility methods directly, for those who prefer a more object-oriented approach. This version of the class is mutable and changes state inline.
For an immutable version of the build, use ImmutableVector3Builder.
用于 @minecraft/server 中需要用到三维向量的 API 的 Vector3 包装类,同时也包含额外的帮助方法。 这是对直接使用核心 Vector 3 实用方法的一种替代,适用于偏好面向对象方法的人。 此类的该版本是可变的,并且在内联中会更改状态。
若要使用构建的不可变版本,请使用 ImmutableVector3Builder。