|
mal-math
C++20 mathematics library.
|
Functions | |
| template<AnyVec U> | |
| std::vector< U > | PoissonDisc (std::mt19937 &gen, U const &from, U const &to, float min_distance, size_t max_attempts=30) noexcept |
| Generates a set of points distributed according to Poisson Disk Sampling. | |
|
inlinenoexcept |
Generates a set of points distributed according to Poisson Disk Sampling.
| U | Vector type. |
| gen | Reference to a random number generator. |
| from | Start vector. |
| to | End vector. |
| min_distance | Minimum distance between points. |
| max_attempts | Maximum number of attempts before giving up on finding a new point. |
Definition at line 154 of file random.hpp.