Mercator  0.4.0
Public Member Functions | List of all members
Mercator::Edge Class Reference

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.
 
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...
 

Detailed Description

The edge of an area.

Constructor & Destructor Documentation

Mercator::Edge::Edge ( const Point2 &  a,
const Point2 &  b 
)
inline

Constructor.

Parameters
aone end of the line defining the edge.
bone end of the line defining the edge.

Member Function Documentation

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.

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
zthe y coordinate where the calculation is required.

The documentation for this class was generated from the following file: