Quaternions and rotation sequences a primer with applications to orbits, aerospace, and virtual reality - Kuipers, Jack B. (Princeton Univ. Press, 2002)