-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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::cross should support 2d vector. #621
Comments
What does that function have to do with the cross product? That looks suspiciously like |
This is often used in computational geometry. You can understand it as the the length of vector |
Sure, |
Well, naming is just a convention. For example, numpy supports such 2d operator in cross product: https://docs.scipy.org/doc/numpy/reference/generated/numpy.cross.html, which may be not a precise name. I could write |
I think this is a good addition to GLM, but I still think it shouldn't be called |
I added a vec2 implementation of cross in within an GTX_exterior_product extension. :D Thanks for suggesting and discussing the topic! |
So I don't need write my own:
The text was updated successfully, but these errors were encountered: