-
glm::length(glm::vec) and glm::vec::length
glm::length(v) gives the length of v and v.length() gives the dimension of v.
I feel like this is a accident waiting to happen.
Also, there doesn't seem to be a length squared function as far as I can tell. I added my own because I got tired of writing dot(v, v), but I feel like this is an extremely common function and should be added.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules