5 #ifndef MERCATOR_BASE_POINT_H 6 #define MERCATOR_BASE_POINT_H 44 m_height(h), m_roughness(r), m_falloff(f) {}
63 unsigned int seed()
const;
68 #endif // MERCATOR_BASE_POINT_H const float falloff() const
Accessor for the falloff at the base point.
Definition: BasePoint.h:57
float & height()
Accessor for the height at the base point.
Definition: BasePoint.h:49
float & roughness()
Accessor for the roughness at the base point.
Definition: BasePoint.h:54
static const float FALLOFF
Default falloff at the base point.
Definition: BasePoint.h:34
static const float HEIGHT
Default height at the base point.
Definition: BasePoint.h:30
static const float ROUGHNESS
Default roughness at the base point.
Definition: BasePoint.h:32
const float roughness() const
Accessor for the roughness at the base point.
Definition: BasePoint.h:52
float & falloff()
Accessor for the falloff at the base point.
Definition: BasePoint.h:59
BasePoint(float h=HEIGHT, float r=ROUGHNESS, float f=FALLOFF)
Constructor.
Definition: BasePoint.h:41
Point on the fundamental grid that is used as the basis for terrain.
Definition: BasePoint.h:19
float m_height
The height at the base point.
Definition: BasePoint.h:22
float m_roughness
The roughness at the base point.
Definition: BasePoint.h:24
const float height() const
Accessor for the height at the base point.
Definition: BasePoint.h:47
unsigned int seed() const
Calculate the random seed used at this base point.
Definition: Segment.cpp:26
float m_falloff
The falloff at the base point.
Definition: BasePoint.h:26