可选delim: string可选arg: neverfloor
Floor the components of a vector to produce a new vector
lerp
Constructs a new vector using linear interpolation on each component from two vectors.
magnitude
The magnitude of the vector
multiply
Element-wise multiplication of two vectors together. Not to be confused with Vector2Builder.dot product
normalize
Normalizes this vector, returning itself.
scale
Scales this by the passed in value, returning itself.
slerp
Constructs a new vector using spherical linear interpolation on each component from two vectors.
Returns a string representation of an object.
可选options: { decimals?: number; delimiter?: string }
Vector2 wrapper class which can be used as a Vector2 for APIs on @minecraft/server which require a Vector2.
用于 @minecraft/server 中需要用到 Vector2 的 API 的 Vector2 包装类。