mal-math
C++20 mathematics library.
|
Namespaces | |
namespace | _detail |
Functions | |
std::vector< vec2 > | Generate (std::mt19937 &gen, vec2 const &from, vec2 const &to, float min_distance, size_t max_attempts=30) noexcept |
Wrapper function for generating Poisson Disk sampled 2D points. | |
|
inlinenoexcept |
Wrapper function for generating Poisson Disk sampled 2D points.
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 206 of file random.hpp.