Assigns the values of the passed in vector to this vector. Returns itself.
cross
Computes the cross product of this and the passed in vector, returning itself.
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 Vector3Builder.dot product or Vector3Builder.cross product
normalize
Normalizes this vector, returning itself.
rotateX
Rotates the vector around the x axis counterclockwise (left hand rule)
Angle in radians
rotateY
Rotates the vector around the y axis counterclockwise (left hand rule)
Angle in radians
rotateZ
Rotates the vector around the z axis counterclockwise (left hand rule)
Angle in radians
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.
toString
Create a string representation of a vector
Optional
options: { decimals?: number; delimiter?: string }
Remarks
X component of this vector.