Optionalx: numberOptionaly: numberOptionalz: numberIterating through a Vector3 instance will yield its components (x, y, z) in the corresponding order.
Clones this vector.
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.
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.
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.
3D vector.
see https://github.com/mrdoob/three.js/blob/master/src/math/Vector3.js
Example