ReadonlyisIterating through a Vector3 instance will yield its components (x, y, z) in the corresponding order.
Adds v to this vector.
Sets this vector to a + b.
Clones this vector.
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.
Optionaloffset: number
(optional) offset into the array. Default is 0.
Computes length of this vector.
Computes squared length of this vector.
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.
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.
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.
Optionalarray: number[]
(optional) array to store the vector to. If this is not provided, a new array will be created.
Optionaloffset: number
(optional) optional offset into the array.
The created or provided array.
Returns an array [x, y, z], or copies x, y and z into the provided array.
Optionalarray: Vector3Tuple
(optional) array to store the vector to. If this is not provided, a new array will be created.
Optionaloffset: 0
(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.
Optionaloffset: number
(optional) optional offset into the array-like.
The provided array-like.
Convert sensor value to tuple
Optionalunit: U
Conversion unit
Tuple of three numbers
StaticfromStaticfrom
3D vector sensor value with accuracy and timestamp.