Constructs a quaternion with the given w, x, y, z components.
The w (scalar) component of the quaternion.
The x component of the quaternion.
The y component of the quaternion.
The z component of the quaternion.
StaticangleStaticangleStaticfromCreates a quaternion from Euler angles given as separate x, y, z values.
StaticfromStaticfromStaticfromReturns the rotation angle in radians represented by this quaternion.
Returns the rotation axis as a vec3.
Returns the inverse of this quaternion.
StaticlerpStaticlookReturns a normalized copy of this quaternion.
StaticquatReturns the identity quaternion representing no rotation.
StaticrotationStaticslerpConverts this quaternion to Euler angles in radians.
Returns a string representation of this quaternion.
Quaternion type for representing rotations in 3D space.