Add "within" support (rectangular axis-alligned region).
Issue https://github.com/laundmo/bevy-spatial/issues/7 Example in distance2d.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.
I finally got around to it. Hope this is what you had in mind.
@laundmo can we get this merged?