Module geo_nd::quat[][src]

Expand description

Quaternion module

Functions

Return the breakdown of a quaternion

Find the conjugate of a quaternion

Get a measure of the ‘distance’ between two quaternions

Get a measure of the ‘distance’ between two quaternions

Multiply one quaternion by the conjugate of the other / len2 of other

Get the axis of a quaternion, and the angle of rotation it corresponds to

Create an identity quaternion

Get the quaternion inverse

Multiply two quaternions together

1 - 2j2 - 2k2 2ij - 2kr 2ik + 2jr 2ij + 2kr 1 - 2i2 - 2k2 2jk - 2ir 2ik - 2jr 2jk + 2ir 1 - 2i2 - 2j2

A simple normalized LERP from one quaterion to another (not spherical)

Find the conjugate of a quaternion

Find the quaternion for a rotation of an angle around an axis

Create a quaternion from its components

Find the quaternion of a Matrix3 assuming it is purely a rotation

Find the quaternion of a Matrix3 assuming it is purely a rotation

Find a rotation about the X-axis

Find a rotation about the Y-axis

Find a rotation about the Z-axis

Convert the quaternion to a bank, heading, altitude tuple - applied in that order

Convert a matrix-3 from the quaternion

Convert to a matrix-4 from a unit quaternion