We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The clamp function seems to handle NaN's in a bad manner. Result of
glm::clamp(std::numeric_limits<float>::quite_NaN(), a, b)
is b while it should be a NaN.
b
This can be fixed by modifying the clamp function. Now its
clamp
return max(min(x, maxVal), minVal)
It should be
return min(maxVal, max(minVal, x));
The text was updated successfully, but these errors were encountered:
Fixed issue #18 glm::clamp and NaN's
931b7bc
This bug is now fixed in GLM 0.9.4 branch for GLM 0.9.4.1 released.
Thanks for contributing! Christophe
Sorry, something went wrong.
Groovounet
No branches or pull requests
The clamp function seems to handle NaN's in a bad manner. Result of
is
b
while it should be a NaN.This can be fixed by modifying the
clamp
function. Now itsIt should be
The text was updated successfully, but these errors were encountered: