A benefit of the quaternion formulation of the composition of two rotations RB and RA is that the resulting quaternion yields directly the rotation axis and angle of the composite rotation RC=RBRA.
In general, the quaternion associated with a spatial rotation R is constructed from its rotation axisS and the rotation angle φ this axis. The associated quaternion is given by,
Let the composition of the rotation RR with RA be the rotation RC=RBRA. The rotation axis and angle of RC is obtained from the product of the quaternions
That is, the composite rotation RC=RBRA is defined by the quaternion
This is Rodrigues formula for the axis of a composite rotation defined in terms of the axes of the two rotations. He derived this formula in 1840 (see page 408).[1]
The three rotation axes A, B, and C form a spherical triangle] and the dihedral angles at the vertices of the triangle between the planes formed by the sides of the this triangle are defined by the these rotation angles.
^Rodrigues, O. (1840), Des lois géométriques qui régissent les déplacements d’un système solide dans l’espace, et la variation des coordonnées provenant de ses déplacements con- sidérés indépendamment des causes qui peuvent les produire, Journal de Mathématiques Pures et Appliquées de Liouville 5, 380–440.