Static ReadonlyZEROStatic ReadonlyONEStatic ReadonlyUPStatic ReadonlyDOWNStatic ReadonlyFORWARDStatic ReadonlyBACKWARDStatic ReadonlyRIGHTStatic ReadonlyLEFTSets x, y, z in place and returns this.
Scales this vector in place by s.
Returns a copy of this vector.
Returns the componentwise negation.
Returns the squared length.
Returns the Euclidean length.
Returns a unit-length copy, or the zero vector if length is 0.
Returns [x, y, z].
StaticzeroReturns (0, 0, 0).
StaticoneReturns (1, 1, 1).
StaticupReturns the world up direction (0, 1, 0).
StaticdownReturns the world down direction (0, -1, 0).
StaticforwardReturns the world forward direction (0, 0, -1) for a right-handed -Z-forward coordinate system.
StaticbackwardReturns the world backward direction (0, 0, 1) for a right-handed -Z-forward coordinate system.
StaticrightReturns the world right direction (1, 0, 0).
StaticleftReturns the world left direction (-1, 0, 0).
StaticfromReads three consecutive components from a numeric array starting at offset.
3D vector with mutable x/y/z components and immutable arithmetic methods.