Quaternion Dynamics. Rotation and orientation quaternions have applications in comp