Creates a new quat initialized with values from an existing quaternion
quaternion to clone
a new quaternion
Creates a new identity quat
a new quaternion
Calculates the dot product of two quat's
the first operand
the second operand
dot product of a and b
Returns whether or not the quaternions have approximately the same elements in the same position.
The first vector.
The second vector.
True if the vectors are equal, false otherwise.
Returns whether or not the quaternions have exactly the same elements in the same position (when compared with ===)
The first quaternion.
The second quaternion.
True if the vectors are equal, false otherwise.
Creates a new quat initialized with the given values
X component
Y component
Z component
W component
a new quaternion
Gets the angular distance between two unit quaternions
Origin unit quaternion
Destination unit quaternion
Angle, in radians, between the two quaternions
Gets the rotation axis and angle for a given quaternion. If a quaternion is created with setAxisAngle, this method will return the same values as providied in the original parameter list OR functionally equivalent values. Example: The quaternion formed by axis [0, 0, 1] and angle -90 is the same as the quaternion formed by [0, 0, 1] and 270. This method favors the latter.
Vector receiving the axis of rotation
Quaternion to be decomposed
Angle, in radians, of the rotation
Alias for quat.length
Calculates the length of a quat
vector to calculate length of
length of a
Alias for quat.squaredLength
Calculates the squared length of a quat
vector to calculate squared length of
squared length of a
Returns a string representation of a quatenion
vector to represent as a string
string representation of the vector
Adds two quat's