Component of a quaternion rotation around an axis
There is an elegant solution for this problem, specially suited for quaternions. It is known as the “swing twist decomposition”: in pseudocode /** Decompose the rotation on to 2 parts. 1. Twist – rotation around the “direction” vector 2. Swing – rotation around axis that is perpendicular to “direction” vector The rotation can be composed … Read more