NOTE:IMPORTANTE ==There is no possibility that 2 different quaternions give the same final rotation.==
Let’s take an example: in the angle and axis descriptor formulas, we find that:
Now if we consider then can be both equal to or , so we have and indetermination on the angle.
Let’s now define and with respect to and as:\begin{align} &\eta = \cos\left(\frac{\theta}{2}\right) \\[7px] &\varepsilon = \sin\left(\frac{\theta}{2}\right)\cdot \vec v \end{align} Where:
- is a vector () and so is .
- While is a scalar ().
Notice that:And:So by using and as constraints we can then find the rotation matrix :
Quaternions re-explained
(As everyone knows them)
Given a point an axis of rotation and the 2 angles of rotation and we can define:
Where:
So once we have defined the new point location after the rotation is given by:
Where: