|
CartoType API
|
#include <cartotype_base.h>
Public Member Functions | |
| TPoint2D () | |
| TPoint2D (T aX, T aY) | |
| bool | operator== (const TPoint2D< T > &aPoint) const |
| bool | operator!= (const TPoint2D< T > &aPoint) const |
| void | operator+= (const TPoint2D< T > &aPoint) |
| void | operator-= (const TPoint2D< T > &aPoint) |
| bool | operator< (const TPoint2D< T > &aPoint) const |
| bool | operator> (const TPoint2D< T > &aPoint) const |
Public Attributes | |
| T | iX |
| T | iY |
A templated 2D point class.
| CartoType::TPoint2D< T >::TPoint2D | ( | ) | [inline] |
Create a point with coordinates (0,0).
| CartoType::TPoint2D< T >::TPoint2D | ( | T | aX, |
| T | aY | ||
| ) | [inline] |
Create a point, specifying coordinates.
| bool CartoType::TPoint2D< T >::operator!= | ( | const TPoint2D< T > & | aPoint | ) | const [inline] |
The inequality operator.
| void CartoType::TPoint2D< T >::operator+= | ( | const TPoint2D< T > & | aPoint | ) | [inline] |
Offset a point by another point, treated as a positive vector.
| void CartoType::TPoint2D< T >::operator-= | ( | const TPoint2D< T > & | aPoint | ) | [inline] |
Offset a point by another point, treated as a negative vector.
| bool CartoType::TPoint2D< T >::operator< | ( | const TPoint2D< T > & | aPoint | ) | const [inline] |
The less-than operator, ordering points by x coordinate, then y coordinate.
| bool CartoType::TPoint2D< T >::operator== | ( | const TPoint2D< T > & | aPoint | ) | const [inline] |
The equality operator.
| bool CartoType::TPoint2D< T >::operator> | ( | const TPoint2D< T > & | aPoint | ) | const [inline] |
The greater-than operator, ordering points by x coordinate, then y coordinate.
| T CartoType::TPoint2D< T >::iX |
The x coordinate.
| T CartoType::TPoint2D< T >::iY |
The y coordinate.
1.7.5.1