Search code examples
graphics3drotationeuler-angles

Smooth transition between the euler angles solved from a rotation matrix


I have a 3*3 rotation matrix R. Now, it is possible to solve this rotation matrix to get the euler angles of the rotation matrix. (https://truesculpt.googlecode.com/hg-history/38000e9dfece971460473d5788c235fbbe82f31b/Doc/rotation_matrix_to_euler.pdf)

Now, Suppose I have a situation where I use the rotation matrix for rotating a body about an axis. Now, For each infinitesimal rotation, I solve the rotation matrix for its euler angles sets. Since There multiple sets (2 in reality) of euler angles come up as solutions, how do I ensure (in code) that I pick the euler angle set such that the rotation of the body is continuous?


Solution

  • What i have read, euler angles are not well suited for interpolation.
    Use Quarternions instead, at least for the interpolation (transition).