Interpolation and tracking of rigid body orientations