Mercator::BottomClip Class Reference

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

List of all members.

Public Member Functions

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

Private Attributes

double bottomY
 Bottom of y range.


Detailed Description

Helper to clip points to a given range.

Constructor & Destructor Documentation

Mercator::BottomClip::BottomClip ( double  t  )  [inline]

Constructor

Parameters:
t bottom of y range


Member Function Documentation

bool Mercator::BottomClip::inside ( const Point2 &  p  )  const [inline]

Check a point is outside this clip.

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

References bottomY.

Point2 Mercator::BottomClip::clip ( const Point2 &  u,
const Point2 &  v 
) const [inline]

Determine the point where a line crosses this clip.

Parameters:
u one of of a line that crosses this clip
v one of of a line that crosses this clip
Returns:
a point where the line cross this clip.

References bottomY.


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

Generated for Mercator by  doxygen 1.5.6