poisson

poisson is library for generating n-dimensional poisson-disk distributions.

Build Status

Using poisson

poisson is used through struct PoissonGen which is built using struct PoissonDisk.

PoissonDisk is generic to Rng supplied and VecLike which describes generation dimension.
VecLike describes what traits from std, nalgebra and num crates are needed to be implemented for samples so the algorithmn can function.
When building a PoissonDisk periodicity can be set from builder to make the distribution to wrap around.

When PoissonGen is created using buildsamples the algorithm calculates approximately the radius that is needed to create distribution with that many samples.
Building of PoissonDisk with method build
samples for non-perioditic distributions is currently restricted to 2, 3 and 4 dimensions (due need of contanstants for each dimension).

Documentation is here