Go to the source code of this file.
|
| glm::ivec2 | hmap::spawn_borders (std::mt19937 &rng, int nbuffer, const glm::ivec2 &shape) |
| | Spawn a point uniformly along the border of a 2D grid.
|
| |
| glm::ivec2 | hmap::spawn_disc (std::mt19937 &rng, const glm::ivec2 ¢er, float radius, const glm::ivec2 &shape) |
| | Spawn a point uniformly inside a disk.
|
| |
| glm::ivec2 | hmap::spawn_gaussian (std::mt19937 &rng, const glm::vec2 ¢er, float sigma, const glm::ivec2 &shape) |
| | Spawn a point using a 2D Gaussian distribution.
|
| |
| glm::ivec2 | hmap::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).
|
| |
| glm::ivec2 | hmap::spawn_uniform (std::mt19937 &rng, const glm::ivec2 &shape) |
| | Spawn a point uniformly over the full grid.
|
| |