Unit quaternions are a mathematical representation of 3D rotations.
I am tracking 3 points (3D, x y z) on a rigid body, which I use to define a local coordinate …