The edge of an area.
More...
|
| Edge (const Point2 &a, const Point2 &b) |
| Constructor. More...
|
|
Point2 | start () const |
| Accessor for the point describing the start of the edge.
|
|
Point2 | end () const |
| Determine the point describing the end of the edge.
|
|
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...
|
|
◆ Edge()
Mercator::Edge::Edge |
( |
const Point2 & |
a, |
|
|
const Point2 & |
b |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
a | one end of the line defining the edge. |
b | one end of the line defining the edge. |
◆ operator<()
bool Mercator::Edge::operator< |
( |
const Edge & |
other | ) |
const |
|
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.
◆ xValueAtZ()
WFMath::CoordType Mercator::Edge::xValueAtZ |
( |
WFMath::CoordType |
z | ) |
const |
|
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.
- Parameters
-
z | the y coordinate where the calculation is required. |
The documentation for this class was generated from the following file: