Mercator
Public Member Functions | Private Attributes | List of all members
Mercator::TopClip Class Reference

Helper to clip points to a given range. More...

Public Member Functions

 TopClip (CoordType t)
 
bool inside (const Point2 &p) const
 Check a point is outside this clip. More...
 
Point2 clip (const Point2 &u, const Point2 &v) const
 Determine the point where a line crosses this clip. More...
 

Private Attributes

CoordType topY
 Top of y range.
 

Detailed Description

Helper to clip points to a given range.

Constructor & Destructor Documentation

Mercator::TopClip::TopClip ( CoordType  t)
inline

Constructor

Parameters
ttop of y range

Member Function Documentation

Point2 Mercator::TopClip::clip ( const Point2 &  u,
const Point2 &  v 
) const
inline

Determine the point where a line crosses this clip.

Parameters
uone of of a line that crosses this clip
vone of of a line that crosses this clip
Returns
a point where the line cross this clip.

References topY.

bool Mercator::TopClip::inside ( const Point2 &  p) const
inline

Check a point is outside this clip.

Parameters
ppoint to be checked.
Returns
true if p is outside the clip.

References topY.


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