Replies: 6 comments
-
Hey there. I am a bit reluctant to add this one. Since glam is not a generic library there's a bit more overhead to adding and maintaining new types. I will sit on this and see if there is further demand for it though. If there is anything you can think of that would make it easier to work with usize with existing types let me know. |
Beta Was this translation helpful? Give feedback.
-
That makes sense, thanks for the consideration! I think even implementing |
Beta Was this translation helpful? Give feedback.
-
I wouldn't add an |
Beta Was this translation helpful? Give feedback.
-
Just swinging by to +1 this. I'd find a |
Beta Was this translation helpful? Give feedback.
-
Same use case for me. It would be nice to have usizes available for 2d indexing. |
Beta Was this translation helpful? Give feedback.
-
Created an issue for this #578 |
Beta Was this translation helpful? Give feedback.
-
I was wondering if there's any chance we could get a "SizeVec" or "USizeVec" (Vec whose elements are usize). I use (usize,usize) a lot to represent 2D size, I find myself wanting to replace them with UVec2 to make the math easier to read, but then I have to convert to usize to interact with array indices and such.
Beta Was this translation helpful? Give feedback.
All reactions