Auios / Auios.QuadTree

MIT License
37 stars 5 forks source link

FindObjects method overload #1

Closed KyleGalvin closed 3 years ago

KyleGalvin commented 3 years ago

First off, thanks for writing this QuadTree implementation.

I'm opening this PR because I found it unusual to need to create a special QuadTreeRect object to define the region I wish to query.

It seemed to me that IQuadTreeObjectBounds already defined a way to get an area for any T

I could have added this as a simple extension method in my own code, but I feel like this method could happily live in this class too.

KyleGalvin commented 3 years ago

On second glance, this cant be an extension method since _objectBounds is private. So if I want this feature, it has to live here.