An open API service indexing awesome lists of open source software.

https://github.com/nilssonk/rust-quadtree

A simple implementation of a Quadtree in Rust.
https://github.com/nilssonk/rust-quadtree

quadtree rust

Last synced: 9 months ago
JSON representation

A simple implementation of a Quadtree in Rust.

Awesome Lists containing this project

README

          

# rust-quadtree
A simple implementation of a [Quadtree](https://en.wikipedia.org/wiki/Quadtree) in Rust.

## Features
* Data to be inserted should implement the *BoxBounded\* trait which enables AABB querying.
* In an attempt to increase reference locality, the nodes themselves only carry a list of indices into a central StableVec which stores the inserted data.
* The subdivision limit, i.e. the number of elements a single node can contain before a node subdivision is triggered, is compile-time configurable through *const generics*.
* A visitation interface is included for convenient tree traversal.