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
It seems that GLM is missing some versions of glm::equalEpsilon and glm::notEqualEpsilon for glm:quat:
glm::equalEpsilon
glm::notEqualEpsilon
glm:quat
#include "glm/glm.hpp" #include "glm/gtx/epsilon.hpp" int main(int argc, char* argv[]) { glm::equalEpsilon(glm::vec2(), glm::vec2(), glm::vec2()); glm::equalEpsilon(glm::vec3(), glm::vec3(), glm::vec3()); glm::equalEpsilon(glm::vec4(), glm::vec4(), glm::vec4()); glm::equalEpsilon(glm::quat(), glm::quat(), glm::quat()); // Works fine. glm::notEqualEpsilon(glm::vec2(), glm::vec2(), glm::vec2()); glm::notEqualEpsilon(glm::vec3(), glm::vec3(), glm::vec3()); glm::notEqualEpsilon(glm::vec4(), glm::vec4(), glm::vec4()); glm::notEqualEpsilon(glm::quat(), glm::quat(), glm::quat()); // Works fine. glm::equalEpsilon(glm::vec2(), glm::vec2(), 0.0f); glm::equalEpsilon(glm::vec3(), glm::vec3(), 0.0f); glm::equalEpsilon(glm::vec4(), glm::vec4(), 0.0f); glm::equalEpsilon(glm::quat(), glm::quat(), 0.0f); // Linker error! glm::notEqualEpsilon(glm::vec2(), glm::vec2(), 0.0f); glm::notEqualEpsilon(glm::vec3(), glm::vec3(), 0.0f); glm::notEqualEpsilon(glm::vec4(), glm::vec4(), 0.0f); glm::notEqualEpsilon(glm::quat(), glm::quat(), 0.0f); // Linker error! return 0; }
I made a patch that fixes the issue: https://gist.github.com/4078772
The text was updated successfully, but these errors were encountered:
Fixed bug #11, added missing quat based epsilonEqual and epsilonNotEq…
b8f30c5
…ual definitions
Hi,
This bug has been fixed in GLM 0.9.4 branch. Please not that GTX_epsilon has been promoted into GTC_epsilon with a couple of changes:
int test_defined() { glm::epsilonEqual(glm::vec2(), glm::vec2(), glm::vec2()); glm::epsilonEqual(glm::vec3(), glm::vec3(), glm::vec3()); glm::epsilonEqual(glm::vec4(), glm::vec4(), glm::vec4()); glm::epsilonEqual(glm::quat(), glm::quat(), glm::quat());
glm::epsilonNotEqual(glm::vec2(), glm::vec2(), glm::vec2()); glm::epsilonNotEqual(glm::vec3(), glm::vec3(), glm::vec3()); glm::epsilonNotEqual(glm::vec4(), glm::vec4(), glm::vec4()); glm::epsilonNotEqual(glm::quat(), glm::quat(), glm::quat()); glm::epsilonEqual(glm::vec2(), glm::vec2(), 0.0f); glm::epsilonEqual(glm::vec3(), glm::vec3(), 0.0f); glm::epsilonEqual(glm::vec4(), glm::vec4(), 0.0f); glm::epsilonEqual(glm::quat(), glm::quat(), 0.0f); glm::epsilonNotEqual(glm::vec2(), glm::vec2(), 0.0f); glm::epsilonNotEqual(glm::vec3(), glm::vec3(), 0.0f); glm::epsilonNotEqual(glm::vec4(), glm::vec4(), 0.0f); glm::epsilonNotEqual(glm::quat(), glm::quat(), 0.0f); return 0;
}
Thanks for contributing! Christophe
Sorry, something went wrong.
Wow, that was fast, thank you!
It's not always that fast, it just turned out that I had a look at this code Yesterday.
Groovounet
No branches or pull requests
It seems that GLM is missing some versions of
glm::equalEpsilon
andglm::notEqualEpsilon
forglm:quat
:I made a patch that fixes the issue: https://gist.github.com/4078772
The text was updated successfully, but these errors were encountered: