mourner / rbush

RBush — a high-performance JavaScript R-tree-based 2D spatial index for points and rectangles
MIT License
2.46k stars 237 forks source link

is there any quick way to return the bounding box of tree itself? #121

Closed jianyunli closed 2 years ago

jianyunli commented 2 years ago

currently I loop all items, is there any better way?

mourner commented 2 years ago

Just look at the root node (tree.data), it should have minX, minY, maxX, maxY properties.