Companion
Properties
An immutable Quaternion instance initialized to (0.0, 0.0, 0.0, 1.0).
The number of elements used to store the object into an array in its interpolatable form.
The number of elements used to pack the object into an array.
An immutable Quaternion instance initialized to (0.0, 0.0, 0.0, 0.0).
Functions
Computes the componentwise sum of two quaternions.
Duplicates a Quaternion instance.
Computes the angle of rotation of the provided quaternion.
Computes the axis of rotation of the provided quaternion.
Computes an inner quadrangle point. This will compute quaternions that ensure a squad curve is C1.
Computes the conjugate of the provided quaternion.
Converts a packed array into a form suitable for interpolation.
Divides the provided quaternion componentwise by the provided scalar.
Computes the dot (scalar) product of two quaternions.
Compares the provided quaternions componentwise and returns true
if they are equal, false
otherwise.
Compares the provided quaternions componentwise and returns true
if they are within the provided epsilon, false
otherwise.
The exponential quaternion function.
Computes the spherical linear interpolation or extrapolation at t using the provided quaternions. This implementation is faster than Quaternion.slerp, but is only accurate up to 10-6.
Computes the spherical quadrangle interpolation between quaternions. An implementation that is faster than Quaternion.squad, but less accurate.
Computes a quaternion representing a rotation around an axis.
Computes a rotation from the given heading, pitch and roll angles. Heading is the rotation about the negative z axis. Pitch is the rotation about the negative y axis. Roll is the rotation about the positive x axis.
Computes a Quaternion from the provided Matrix3 instance.
Computes the inverse of the provided quaternion.
Computes the linear interpolation or extrapolation at t using the provided quaternions.
The logarithmic quaternion function.
Computes magnitude for the provided quaternion.
Computes magnitude squared for the provided quaternion.
Computes the product of two quaternions.
Multiplies the provided quaternion componentwise by the provided scalar.
Negates the provided quaternion.
Computes the normalized form of the provided quaternion.
Stores the provided instance into the provided array.
Computes the spherical linear interpolation or extrapolation at t using the provided quaternions.
Computes the spherical quadrangle interpolation between quaternions.
Computes the componentwise difference of two quaternions.
Retrieves an instance from a packed array.
Retrieves an instance from a packed array converted with convertPackedArrayForInterpolation.