Crate quaternion
source · [−]Expand description
A simple and type agnostic quaternion math library designed for reexporting
Functions
Adds two quaternions.
Construct a quaternion for the given angle (in radians)
about the given axis.
Axis must be a unit vector.
Takes the quaternion conjugate.
Dot product of two quaternions
Construct a quaternion representing the given euler angle rotations (in radians)
Constructs identity quaternion.
Computes the length of a quaternion.
Multiplies two quaternions.
Rotate the given vector using the given quaternion
Construct a quaternion representing the rotation from a to b
Scales a quaternion (element-wise) by a scalar
Computes the square length of a quaternion.
Type Definitions
Quaternion type alias.