openrndr / orx

A growing library of assorted data structures, algorithms and utilities for OPENRNDR
https://openrndr.org
BSD 2-Clause "Simplified" License
121 stars 37 forks source link

quadtree enhancements -- nearestToPoint, and Readwrite locking #217

Closed jbellis closed 2 years ago

jbellis commented 2 years ago

Sometimes you want to ask for objects near a point that is not itself associated with the generic object type

@ricardomatias is there a better way to structure this? the code is identical to nearest(...) except for the element === obj comparison