A very fast static spatial index for 2D points and rectangles in JavaScript 🌱
Support index.add(x, y)
alias which is the same as index.add(x, y, x, y)
— a convenient way to add points to the index.
Accept byteOffset
as an optional argument in Flatbush.from
(for recreating an index from a part of a buffer). #55 by @kylebarron
index.neighbors(x, y)
without other arguments would freeze in an infinite loop. #50neighbors
queries. ce745eeafd9b1be3c63cc9fb71fa5387550ad464nodeSize
. #28Improve kNN performance by ~10-15%.
index.add(x0, y0, x1, y1)
now returns the item's index.
Slightly faster kNN search.