node-kdtree icon indicating copy to clipboard operation
node-kdtree copied to clipboard

Bounding Box Support

Open PetrochukM opened this issue 8 years ago • 1 comments

Are there future plans to support bounding box queries? Such that one can specify a bounding box and all the points in the bounding box are returned?

PetrochukM avatar Dec 29 '16 12:12 PetrochukM

In order to support this natively the underlying C library would need to be modified to support such queries. It might be possible to query for nearest neighbors using the center of the box though, and use JavaScript code to reject points outside an application-defined bounding box.

justinethier avatar Dec 30 '16 04:12 justinethier