mercator
0.4.0
A terrain generation library for the Worldforge system.
|
The edge of an area. More...
Public Member Functions | |
Edge (const Point2 &a, const Point2 &b) | |
Constructor. More... | |
Point2 | start () const |
Accessor for the point describing the start of the edge. More... | |
Point2 | end () const |
Determine the point describing the end of the edge. More... | |
WFMath::CoordType | xValueAtZ (WFMath::CoordType z) const |
Determine the x coordinate at a given y coordinate. More... | |
bool | operator< (const Edge &other) const |
Compare the y coordinate of the start with another edge. More... | |
The edge of an area.
Definition at line 32 of file AreaShader.cpp.
|
inline |
Constructor.
a | one end of the line defining the edge. |
b | one end of the line defining the edge. |
Definition at line 39 of file AreaShader.cpp.
|
inline |
Determine the point describing the end of the edge.
Definition at line 60 of file AreaShader.cpp.
|
inline |
Compare the y coordinate of the start with another edge.
This operator ensures that edges can be sorted, compares the y y coordinate of the start of the edges.
Definition at line 78 of file AreaShader.cpp.
|
inline |
Accessor for the point describing the start of the edge.
Definition at line 58 of file AreaShader.cpp.
|
inline |
Determine the x coordinate at a given y coordinate.
Calculate the x coordinate on the edge line where the y coordinate is the value specified.
z | the y coordinate where the calculation is required. |
Definition at line 67 of file AreaShader.cpp.
Referenced by Mercator::EdgeAtZ::operator()().