Formula:Where:
- : rotation matrix along the axis.
- is the angle of rotation along the axis (in the figure this axis/vector it’s represented by the vector but i wanted to avoid confusion between this axis of rotation and the elements of the rotation matrix : , so i called it ).
The angle of rotation can be found as:And the axis of rotation as:Where:- is the element of the rotation matrix
So to find the rotation matrix we can impose and as constraints and find:
NOTE:IMPORTANTE For → (or ) → (Indeterminate) The Quaternion descriptor is more complicated but can avoid this problem.