fast_poisson
This is a library for generating Poisson disk distributions using Bridson's algorithm.
Properties of Poisson disk distributions include no two points being closer than a certain radius and the distribution uniformly filling the space. Poisson disk distributions' blue noise properties have a variety of applications in procedural generation, including textures, worlds, meshes, and item placement.
Usage
A simple example to generate a Vec containing a 2D Poisson distribution within [0, 1) in each
dimension:
use Poisson2D;
See the documentation for more.
MSRV
Testing is only performed on the current stable and beta versions of Rust. While older versions may have no problems, no guarantees are made.
License
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.
Contribution
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.