Definition

Unit quaternions (, the 3-sphere ) represent rotations. As scalar + vector, .

Formula

From axis and angle :

Rotate a vector: with the conjugate . Interpolate: , .

Intuition

Complex numbers multiply by adding angles and multiplying magnitudes, so a unit complex number is a 2D rotation. Quaternions are Hamilton’s generalization of this to 3D rotations, which needs 4 components.

ProCon
no singularities (no gimbal lock)4 numbers instead of 3
linearly independent derivativesquadratic constraint
concatenation with the quaternion product
ideal for interpolation (SLERP)

Appears in