Adds v to this vector.
Sets this vector to a + b.
Copies value of v to this vector.
Sets this vector to cross product of itself and v.
Sets this vector to cross product of a and b.
Computes distance of this vector to v.
Computes squared distance of this vector to v.
Divides this vector by scalar s. Set vector to ( 0, 0, 0 ) if s == 0.
Computes dot product of this vector and v.
Checks for strict equality of this vector and v.
Sets this vector's x, y and z value from the provided array or array-like.
the source array or array-like.
(optional) offset into the array. Default is 0.
Computes length of this vector.
Computes Manhattan length of this vector. http://en.wikipedia.org/wiki/Taxicab_geometry
Computes squared length of this vector.
Computes the Manhattan length (distance) from this vector to the given vector v
Computes the Manhattan length of this vector.
Multiplies this vector by scalar s.
Inverts this vector.
Normalizes this vector.
Sets this vector's x, y and z from Math.random
Sets value of this vector.
Normalizes this vector and multiplies it by l.
Sets all values of this vector.
Sets x value of this vector.
Sets y value of this vector.
Sets z value of this vector.
Subtracts v from this vector.
Sets this vector to a - b.
Returns an array [x, y, z], or copies x, y and z into the provided array.
(optional) array to store the vector to. If this is not provided, a new array will be created.
(optional) optional offset into the array.
The created or provided array.
Copies x, y and z into the provided array-like.
array-like to store the vector to.
(optional) optional offset into the array-like.
The provided array-like.
Copies x, y and z into the provided array-like.
array-like to store the vector to.
(optional) optional offset into the array-like.
The provided array-like.
Generated using TypeDoc