yaqt
Yet another quad tree. API is not finished. Just a test. You can see yaot for 3D oct-tree, which is used and better documented.
usage
These notes are for myself:
npm install https://github.com/anvaka/yaqt
// First we need to create the tree:var createTree = ;var tree = ;var points =0 0 // First point at 0, 0, 010 0 // second point at 10, 0, 0tree;tree;// this will return indices 0 and 2 of the origina poitns array, since both 0, 0// and 10, 0 ar lying within requested sqare
license
MIT