RTree Demo
Demo
Click & drag a mouse over the screen to add objects to the RTree.
Lines are drawn from the mouse-pointer to the 10 nearest objects.
The boxes surrounding the leaf nodes show the structure of the RTree.
Download
Available as:
- Script: this adds an RTree2d constructor function to the global object. Just include with
script
-tag on an HTML page.
- AMD Module: use this with an AMD module loader (e.g. requirejs)
- CommonJS Module: use this in nodejs
Documentation