-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "within" support (rectangular axis-alligned region). #23
base: main
Are you sure you want to change the base?
Conversation
Example in within2d.rs Known issues: Panic when loc1 is farther along the [1,1] axis than loc2. Could not find a way to check this and swap them inside of the macro.
Move example function back into distance2d.rs; remove within2d.rs.
Hi! Thank you a lot for your PR. i'm a bit wary about expanding the SpatialAccess Trait like this - other data structures, of which i plan to add at least 2 somewhere during the next bevy release cycle, might not support it. How do you feel about moving that to a extension trait? It would mean users have to import another trait, but leaves the option for other datastructures which don't support it. |
Of course, if you think it's best. I'll try implementing it that way. |
Add separate demo.
I finally got around to it. Hope this is what you had in mind. |
@laundmo can we get this merged? |
Issue #7
Example in distance2d.rs.