34 const glm::ivec2 &shape);
49 const glm::ivec2 ¢er,
51 const glm::ivec2 &shape);
65 const glm::vec2 ¢er,
67 const glm::ivec2 &shape);
82 const glm::ivec2 ¢er,
85 const glm::ivec2 &shape);
96glm::ivec2
spawn_uniform(std::mt19937 &rng,
const glm::ivec2 &shape);
Declaration of the Array class for 2D floating-point arrays with various mathematical operations and ...
Definition algebra.hpp:23
glm::ivec2 spawn_ring(std::mt19937 &rng, const glm::ivec2 ¢er, float radius_min, float radius_max, const glm::ivec2 &shape)
Spawn a point uniformly within an annulus (ring).
Definition spawner.cpp:110
glm::ivec2 spawn_disc(std::mt19937 &rng, const glm::ivec2 ¢er, float radius, const glm::ivec2 &shape)
Spawn a point uniformly inside a disk.
Definition spawner.cpp:71
glm::ivec2 spawn_gaussian(std::mt19937 &rng, const glm::vec2 ¢er, float sigma, const glm::ivec2 &shape)
Spawn a point using a 2D Gaussian distribution.
Definition spawner.cpp:93
glm::ivec2 spawn_uniform(std::mt19937 &rng, const glm::ivec2 &shape)
Spawn a point uniformly over the full grid.
Definition spawner.cpp:136
glm::ivec2 spawn_borders(std::mt19937 &rng, int nbuffer, const glm::ivec2 &shape)
Spawn a point uniformly along the border of a 2D grid.
Definition spawner.cpp:13