Struct poisson::PoissonDisk
[−]
[src]
pub struct PoissonDisk<R> where R: Rng {
// some fields omitted
}
Generates poisson-disk distribution in [0, 1]² area with O(N log N) time and space complexity relative to the number of samples generated. Based on Gamito, Manuel N., and Steve C. Maddock. "Accurate multidimensional Poisson-disk sampling." ACM Transactions on Graphics (TOG) 29.1 (2009): 8.
Examples
extern crate rand; extern crate poisson; let mut poisson = poisson::PoissonDisk::new(rand::weak_rng(), 0.1); let mut vecs = vec![]; poisson.create(&mut vecs); println!("{:?}", vecs);