Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

usize vector types #578

Open
bitshifter opened this issue Oct 30, 2024 Discussed in #261 · 0 comments
Open

usize vector types #578

bitshifter opened this issue Oct 30, 2024 Discussed in #261 · 0 comments

Comments

@bitshifter
Copy link
Owner

There have been a few requests for USizeVecN.

I'm not sure if this needs the full unsigned int vector interface or not although it's probably easier to make it the same as the other unsigned integer vector types. So far isize vectors have not been requested.

Discussed in #261

Originally posted by sarkahn September 3, 2021
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.

Naming wise maybe USVecN ISVecN would be more glam like but they also seem not super clear, the alternative being USizeVecN and ISizeVecN.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant