w component of the quat.
x component of the quat.
y component of the quat.
z component of the quat.
Static
angleStatic
angleStatic
fromReturns a new quat using the euler angles x
, y
, z
(in radians).
Static
fromStatic
fromStatic
fromReturns the rotation angle of the quat.
Returns the rotation axis of the quat.
Returns an inverted version of the quat.
Static
lerpStatic
lookNormalizes the quat.
Static
quatReturns the identity quaternion.
Static
rotationStatic
slerpReturns an euler angle representation of the quat, in radians.
Returns a string representation of the quat.
A quaternion, used to represent rotation.
Example