Optionaldelim: stringOptionalarg: neverAssigns the values of the passed in vector to this vector. Returns itself.
dot
Computes the dot product of this and the passed in vector.
floor
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 VectorXZBuilder.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.
subtract
Subtracts the vector v from this, returning itself.
Returns a string representation of an object.
Optionaloptions: { decimals?: number; delimiter?: string }
VectorXZ wrapper class which can be used as a VectorXZ for APIs on @minecraft/server which require a VectorXZ.