I'm experimenting jmonkeyengine and I've come across the need to return all points (from a predefined large set of points) that fall within a bounding volume. It's easy enough to create the volume itself but I'd like to get a map of all the contained points.
Does the community have any ideas? I'm happy to use other libraries if needs be, I'm drawn to jmonkey due to the community support and the BoundingCapsule shape.
Edit: I have considered iterating over all my Points and using .contains, unfortunately the space contains hundreds of thousands of points and relatively miniscule capsules. Surely there must be some clever maths I'm missing.