WaDelma / poisson

n-dimensional poisson-disk distribution generation for rust.
MIT License
10 stars 8 forks source link

Fixes assert failure in Bridson #30

Closed WaDelma closed 4 years ago

WaDelma commented 4 years ago

Fixes #29

This was caused by samples generated with at least one coordinate being 1. I changed it to generate points [0,1) which actually is what Ebeida was already doing looking at the code now. This is also more usable as these tiles fit neatly next to each other and random generation is almost always exclusive on the upper bound.