Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glm::axisAngle returns NaN #638

Closed
Morloth1274 opened this issue Jun 13, 2017 · 1 comment
Closed

glm::axisAngle returns NaN #638

Morloth1274 opened this issue Jun 13, 2017 · 1 comment
Assignees
Milestone

Comments

@Morloth1274
Copy link

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.

Groovounet added a commit that referenced this issue Jun 24, 2017
@Groovounet Groovounet self-assigned this Jun 24, 2017
@Groovounet Groovounet added this to the GLM 0.9.9 milestone Jun 24, 2017
@Groovounet
Copy link
Member

This issue should be fixed in master branch.

Thanks for reporting,
Christophe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants