Creates a new Quaternion.
The x component. Defaults to 0.
The y component. Defaults to 0.
The z component. Defaults to 0.
The w component. Defaults to 1.
The w component.
The x component.
The y component.
The z component.
Resets the quaternion to the identity rotation.
this
Calculates the Euclidean length of the quaternion.
The length.
Multiplies this quaternion by another.
The other quaternion.
this
Normalizes the quaternion to a unit length of 1.
this
Sets the components of the quaternion.
The x component.
The y component.
The z component.
The w component.
this
Sets the quaternion from axis and angle.
The rotation axis (must be normalized).
The rotation angle in radians.
this
Sets the quaternion from a rotation matrix.
The rotation matrix.
this
A class representing a quaternion for rotations.