You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When given certain rotation matrixes, the glm::axisAngle function sometimes returns the right rotation vector but the angle is NaN. The rotation matrix in question is:
When given certain rotation matrixes, the glm::axisAngle function sometimes returns the right rotation vector but the angle is NaN. The rotation matrix in question is:
[1 0 -0.0174559 0 ]
[0 1 0 0 ]
[0.0174559 0 1 0 ]
[0 0 0 1 ]
Which gives the rotation vector: (0, -1, 0) and the angle: NaN.
Here is the test code:
glm bug.cpp.txt
When I translate the rotation matrix to a quaternion it works just fine and returns the right values.
The text was updated successfully, but these errors were encountered: