Quaternions and spatial rotation
Unit quaternions, known as versors, provide a convenient mathematical notation for representing spatial orientations and rotations of elements in three dimensional space (3D rotations). This is a generalization of the use of unit complex numbers for 2D rotations.
Source: Wikipedia — Quaternions and spatial rotation (CC BY-SA 4.0)