HighMap library (C++)
Loading...
Searching...
No Matches
particles.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  hmap
 

Functions

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 &center, float radius, const glm::ivec2 &shape)
 Spawn a point uniformly inside a disk.
 
glm::ivec2 hmap::spawn_gaussian (std::mt19937 &rng, const glm::vec2 &center, 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 &center, 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.
 

Detailed Description

Author
Otto Link (otto..nosp@m.link.nosp@m..bv@g.nosp@m.mail.nosp@m..com)