Representing Attitude: Euler Angles, Unit Quaternions, and Rotation