Copies 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.
Computes dot product of this vector and v.
Computes the Manhattan length of this vector.
see Taxicab Geometry
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.
Computes the Manhattan length (distance) from this vector to the given vector v
see Taxicab Geometry
Sets this vector's x, y and z components from the x, y, and z components of the specified Euler Angle.
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: number(optional) offset into the array. Default is 0.
Returns an array [x, y, z], or copies x, y and z 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: Vector3TupleOptional
offset: 0Copies x, y and z 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.
3D vector.
see https://github.com/mrdoob/three.js/blob/master/src/math/Vector3.js
Example