|
CartoType API
|
#include <cartotype_base.h>
Public Member Functions | |
| TPoint () | |
| TPoint (int32 aX, int32 aY) | |
| bool | operator== (const TPoint &aPoint) const |
| bool | operator!= (const TPoint &aPoint) const |
| void | operator+= (const TPoint &aPoint) |
| void | operator-= (const TPoint &aPoint) |
| bool | operator< (const TPoint &aPoint) const |
| bool | operator> (const TPoint &aPoint) const |
| void | ScaleTo64ths () |
| void | ScaleFrom64ths () |
Public Attributes | |
| int32 | iX |
| int32 | iY |
A point in two-dimensional space.
| CartoType::TPoint::TPoint | ( | ) | [inline] |
Create a point with coordinates (0,0).
| CartoType::TPoint::TPoint | ( | int32 | aX, |
| int32 | aY | ||
| ) | [inline] |
Create a point, specifying coordinates.
| bool CartoType::TPoint::operator!= | ( | const TPoint & | aPoint | ) | const [inline] |
The inequality operator.
| void CartoType::TPoint::operator+= | ( | const TPoint & | aPoint | ) | [inline] |
Offset a point by another point, treated as a positive vector.
| void CartoType::TPoint::operator-= | ( | const TPoint & | aPoint | ) | [inline] |
Offset a point by another point, treated as a negative vector.
| bool CartoType::TPoint::operator< | ( | const TPoint & | aPoint | ) | const [inline] |
The less-than operator, ordering points by x coordinate, then y coordinate.
| bool CartoType::TPoint::operator== | ( | const TPoint & | aPoint | ) | const [inline] |
The equality operator.
| bool CartoType::TPoint::operator> | ( | const TPoint & | aPoint | ) | const [inline] |
The greater-than operator, ordering points by x coordinate, then y coordinate.
| void CartoType::TPoint::ScaleFrom64ths | ( | ) | [inline] |
Convert from 64ths to units by dividing both coordinates by 64 and discarding the fractional parts.
| void CartoType::TPoint::ScaleTo64ths | ( | ) | [inline] |
Convert from units to 64ths by multiplying both coordinates by 64.
| int32 CartoType::TPoint::iX |
The x coordinate.
| int32 CartoType::TPoint::iY |
The y coordinate.
1.7.5.1