sphrs is a general purpose spherical harmonics and (regular and irregular) solid harmonics library in Rust.
For details on how to use sphrs, please consult the documentation, either for the latest stable release, or for the current main branch.
This crate is heavily inspired by Google's spherical-harmonics library and follows the mathematics documented here.
- Robin Green, "Spherical Harmonic Lighting: The Gritty Details"
- Spherical harmonics (Wikipedia)
- Solid harmonics (Wikipedia)
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
License: MIT OR Apache-2.0