Returns the magnitude of the this vector.
Returns the x magnitude of this vector in world coordinates.
Returns the y magnitude of this vector in world coordinates.
Returns the z magnitude of this vector in world coordinates.
Returns the angle in degrees, between this and vector. If normal is supplied, then will return the signed angle, from this to vector, about the normal, using the Right-Hand-Rule. The vectors do not need to be normalized.
The vector to measure to.
Optional. A vector approximately perpendicular to the others, which determines the sign of the result.
An angle in degrees.
Returns a string of the form 'v<x, y, z>' where x, y, and z are in world coordinates. Note that these values are for display only, and are not guaranteed to reproduce the vector if read back in.
Dot vector with this, returning a scalar.
vector to take the dot product with
Returns the three.js implementation object
Returns the x-component of this relative to localFrame.
The Frame in which we want the x-component
Returns the y-component of this relative to localFrame.
The Frame in which we want the y-component
Returns the z-component of this relative to localFrame.
The Frame in which we want the z-component
Return true if the two vectors are "close" to pointing in the same direction, in the AAA test sense (1/64 @ length 1).
Vector to compare
Returns this negated as a new Vector
Return true if the two vectors are parallel to each other. They can be pointing in opposite directions.
Vector to compare
Returns true if the two vectors are within lengthEpsilon of each other
Vector to compare
Returns true if the two vectors are within lengthEpsilon of each other
Coordinate
Coordinate
Coordinate
Return this multiplied by s in a new Vector
Scale factor
Returns this vector normalized to length 1 in a new Vector
Vector is a pure geometry object. It is used for geometric computations within rules. It is based on the three.js Vector3 object.