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

angle and orientedAngle sometimes return NaN values #145

Merged
merged 1 commit into from
Dec 25, 2013
Merged

angle and orientedAngle sometimes return NaN values #145

merged 1 commit into from
Dec 25, 2013

Conversation

jsb
Copy link

@jsb jsb commented Dec 19, 2013

Apparently, it is possible that the dot product of two normalized vectors is not within [-1, 1], due to numerical inaccuracies. Thus, the result can lie outside of the domain of acos, resulting in NaN return values.

@ghost ghost assigned Groovounet Dec 25, 2013
Groovounet added a commit that referenced this pull request Dec 25, 2013
angle and orientedAngle sometimes return NaN values
@Groovounet Groovounet merged commit 5775879 into g-truc:0.9.5 Dec 25, 2013
@Groovounet
Copy link
Member

This bug will be fixed in GLM 0.9.5.1.

Thanks for contributing!
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

Successfully merging this pull request may close these issues.

2 participants