Repository navigation
Replies: 7 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. |
|
That makes sense, thanks for the consideration! I think even implementing |
|
I wouldn't add an |
|
Just swinging by to +1 this. I'd find a |
|
Same use case for me. It would be nice to have usizes available for 2d indexing. |
|
Added |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions