Spart (s[pace] par[titioning] t[rees] is a Rust library that provides implementations of various space partitioning tree data structures for efficient indexing and searching 2D and 3D point data.
Currently, the following trees are implemented:
Index | Tree Type | 2D | 3D | kNN search | Range search |
---|---|---|---|---|---|
1 | Quadtree | β | β | β | |
2 | Octree | β | β | β | |
3 | Kd-tree | β | β | β | β |
4 | R-tree | β | β | β | β |
5 | BSP-tree | β | β | β | β |
cargo add spart
The documentation for the latest release can be found here.
Additionally, check out the tests directory for detailed examples for how to use the library.
See CONTRIBUTING.md for details on how to make a contribution.
Spart is available under the terms of either of the following licenses:
- MIT License (LICENSE-MIT)
- Apache License, Version 2.0 (LICENSE-APACHE)