Replies: 2 comments
-
That sounds reasonable to me, will move this to an issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Added in #460 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For signed types:
For unsigned types:
Matching the standard library's integer functions.
Use case:
I have an unsigned integer vector that points to a pixel in an image. It makes sense that this is unsigned.
I have a delta that I would like apply to that vector. It makes sense that this is signed.
This use case only necessitates the variants for unsigned types. I propose the rest for completeness.
These functions would increase the brevity of code using glam. As it is now, glam is an "install and go" library that tends to have what you want, where you go looking for it. I believe these additions to be in that spirit.
Beta Was this translation helpful? Give feedback.
All reactions