This crate is a fast implementation of KD-tree for raytracer (or other rendering method using ray).
It's based on this paper written by Ingo Wald and Vlastimil Havran.
For more information on how this library is implemented check out my article.
To install it, just add the dependency in your Cargo.toml
.
toml
[dependencies]
kdtree-ray="0.1.0"
For examples of use see the crate documentation.