|
Mercator
|
Helper to clip points to a given range. More...
Public Member Functions | |
| LeftClip (CoordType 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 | |
| CoordType | leftX |
| Left of x range. | |
Helper to clip points to a given range.
| Mercator::LeftClip::LeftClip | ( | CoordType | t | ) | [inline] |
Constructor
| t | left of x range. |
| Point2 Mercator::LeftClip::clip | ( | const Point2 & | u, |
| const Point2 & | v | ||
| ) | const [inline] |
Determine the point where a line crosses this clip.
| u | one of of a line that crosses this clip |
| v | one of of a line that crosses this clip |
References leftX.
| bool Mercator::LeftClip::inside | ( | const Point2 & | p | ) | const [inline] |
Check a point is outside this clip.
| p | point to be checked. |
References leftX.
1.7.6.1