33 #ifndef DOXYGEN_SHOULD_SKIP_THIS 60 bool step(Vector2i& res);
160 #ifndef DOXYGEN_SHOULD_SKIP_THIS A random engine.
Definition: Random.h:43
std::vector< Vector2f > midpointDisplacement1D(Vector2f p0, Vector2f p1, Random &random, unsigned iterations, Vector2f direction, float initialFactor=1.0f, float reductionFactor=0.5f)
1D midpoint displacement
Heightmap diamondSquare2D(Vector2i size, Random &random, ArrayRef< double > initialValues=nullptr)
2D diamond square
A heightmap.
Definition: Heightmap.h:44
std::vector< Vector2f > midpointDisplacement1D(Vector2f p0, Vector2f p1, Random &random, unsigned iterations, float initialFactor=1.0f, float reductionFactor=0.5f)
1D midpoint displacement
std::vector< Vector2i > generateLine(Vector2i p0, Vector2i p1)
Generate a line between two positions.
The namespace for gf classes.
Definition: Action.h:34
A constant reference to an array and its size.
Definition: ArrayRef.h:42
State for the Bresenham's line algorithm.
Definition: Geometry.h:44
Bresenham(Vector2i p0, Vector2i p1)
Constructor.
bool step(Vector2i &res)
Generate a new point on the line.
#define GF_API
Definition: Portability.h:35
Heightmap midpointDisplacement2D(Vector2i size, Random &random, ArrayRef< double > initialValues=nullptr)
2D midpoint displacement