#include <PoissonDiskSampling.hpp>
|
| static std::vector< Vector2f > | generate (float width, float height, float r, int k=30, uint64_t seed=42) |
| | Generate points evenly spaced by at least r, inside a width x height area.
|
| |
◆ generate()
| static std::vector< Vector2f > PoissonDisk::generate |
( |
float |
width, |
|
|
float |
height, |
|
|
float |
r, |
|
|
int |
k = 30, |
|
|
uint64_t |
seed = 42 |
|
) |
| |
|
inlinestatic |
Generate points evenly spaced by at least r, inside a width x height area.
- Parameters
-
| width | Area width |
| height | Area height |
| r | Minimum distance between any two points |
| k | Attempts per active point before giving up (default 30) |
| seed | Seed for determinism |
The documentation for this class was generated from the following file: