Expand description
Unit quaternions for representing and composing 3D rotations.
A Quaternion w + xi + yj + zk with unit norm encodes a rotation by an angle θ about a unit
axis n as cos(θ/2) + sin(θ/2) (n_x i + n_y j + n_z k). Composition is the Hamilton product,
and q and -q describe the same rotation. Arithmetic is in f64.
See the book entry Rotations, Euler angles and quaternions.
Structs§
- Quaternion
- A quaternion
w + xi + yj + zk(scalar part first).