combining two three-dimensional rotations

A
B
Hamilton A
Hamilton B
AB
BA
Hamilton AB
Hamilton BA