Readonly
isCopies value of v to this vector.
Adds v to this vector.
Sets this vector to a + b.
Subtracts v from this vector.
Sets this vector to a - b.
is assumed to be normalized
assumes the upper 3x3 of m is a pure rotation matrix (i.e, unscaled)
Computes dot product of this vector and v.
Computes the Manhattan length of this vector.
see Taxicab Geometry
Linearly interpolate between this vector and v with alpha factor.
Checks for strict equality of this vector and v.
Sets this vector's x, y, z and w value from the provided array or array-like.
the source array or array-like.
Optional
offset: number(optional) offset into the array. Default is 0.
Returns an array [x, y, z, w], or copies x, y, z and w into the provided array.
Optional
array: number[](optional) array to store the vector to. If this is not provided, a new array will be created.
Optional
offset: number(optional) optional offset into the array.
The created or provided array.
Optional
array: Vector4TupleOptional
offset: 0Copies x, y, z and w into the provided array-like.
array-like to store the vector to.
Optional
offset: number(optional) optional offset into the array-like.
The provided array-like.
4D vector.