Optional
x: numberOptional
y: numberOptional
z: numberReadonly
isAdds 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.
Use .manhattanDistanceTo() instead.
Divides this vector by scalar s. Set vector to ( 0, 0, 0 ) if s == 0.
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.
Computes Manhattan length of this vector. http://en.wikipedia.org/wiki/Taxicab_geometry
Use .manhattanLength() instead.
Computes the Manhattan length (distance) from this vector to the given vector v
see Taxicab Geometry
Computes the Manhattan length of this vector.
see Taxicab Geometry
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.
Set the accuracy of the absolute position
Accuracy object or number
instance
Sets this vector's x, y and z components from the r, g, and b components of the specified Color | color.
Sets this vector's x, y and z components from the x, y, and z components of the specified Euler Angle.
Normalizes this vector and multiplies it by l.
Sets all values 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: 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.
Convert sensor value to tuple
Optional
unit: AngularVelocityUnitConversion unit
Tuple of three numbers
Static
fromRest
...args: any[]Static
from
Iterating through a Vector3 instance will yield its components (x, y, z) in the corresponding order.