mercator
0.4.0
A terrain generation library for the Worldforge system.
|
5 #ifndef MERCATOR_BASE_POINT_H
6 #define MERCATOR_BASE_POINT_H
44 m_height(h), m_roughness(r), m_falloff(f) {}
47 bool operator==(
const BasePoint& rhs)
const;
48 bool operator!=(
const BasePoint& rhs)
const;
51 float height()
const {
return m_height; }
53 float &
height() {
return m_height; }
61 float falloff()
const {
return m_falloff; }
67 unsigned int seed()
const;
72 #endif // MERCATOR_BASE_POINT_H
float & roughness()
Accessor for the roughness at the base point.
float & falloff()
Accessor for the falloff at the base point.
float roughness() const
Accessor for the roughness at the base point.
static constexpr float ROUGHNESS
Default roughness at the base point.
unsigned int seed() const
Calculate the random seed used at this base point.
float falloff() const
Accessor for the falloff at the base point.
float height() const
Accessor for the height at the base point.
Point on the fundamental grid that is used as the basis for terrain.
static constexpr float FALLOFF
Default falloff at the base point.
float & height()
Accessor for the height at the base point.
BasePoint(float h=HEIGHT, float r=ROUGHNESS, float f=FALLOFF)
Constructor.
static constexpr float HEIGHT
Default height at the base point.