You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, I meant getting the vector dimension (2 for Vec2). I think it would make sense having an equivalent len for the cases where is not compiled with -d:vmathArrayBased.
Activity
treeform commentedon Oct 13, 2023
You can use the length() function to get the magnitude:
https://registry.khronos.org/OpenGL-Refpages/gl4/html/length.xhtml
Or do want to get how many dementions the vector has? In this case 2 because its a vec2?
mantielero commentedon Oct 14, 2023
Yes, I meant getting the vector dimension (2 for Vec2). I think it would make sense having an equivalent
lenfor the cases where is not compiled with-d:vmathArrayBased.treeform commentedon May 25, 2026
Thank you for this issue. I actually have a need for this feature, and so I added it here: #87