#quad-tree #oct-tree #generalized #dimension #kd-tree

hyper-tree

Quadtrees and Octrees generalized to any dimension and type

3 unstable releases

Uses new Rust 2024

0.2.0 Sep 17, 2025
0.1.1 Nov 30, 2024
0.1.0 Nov 30, 2024

#1040 in Algorithms

Download history 53/week @ 2025-09-11 86/week @ 2025-09-18 4/week @ 2025-09-25 6/week @ 2025-10-02

113 downloads per month

MIT/Apache

33KB
867 lines

hyper-tree

A zero-cost generalization over quadtrees and octrees that store points.

  • No dependencies!
  • 100% safe code
  • Small footprint

This is not a kd-tree! While kd-trees are also used for binary space partitioning their splits are not necessarily equal, as they are in quadtrees, octrees, and more general forms.

What can I do with this?

Right now, not much. This is still very much a work in progress.

TODO

  • Test
  • Benchmark
  • Add support for padded trees
  • Expose basic API

No runtime deps