|
CartoType API
|
#include <cartotype_arithmetic.h>
Public Member Functions | |
| TPointFixed (TFixed aX, TFixed aY) | |
| TPointFixed (int32 aX, int32 aY) | |
| TPointFixed (const TPoint &aPoint) | |
| TPointFixed (const TPoint &aPoint, int32 aFractionalBits) | |
| TPointFixed (const TPoint &aPoint, TFixed::TRaw) | |
| bool | operator== (const TPointFixed &aPoint) const |
| bool | operator!= (const TPointFixed &aPoint) const |
| void | operator+= (const TPointFixed &aPoint) |
| void | operator-= (const TPointFixed &aPoint) |
| void | operator*= (const TFixed &aFixed) |
| TFixed | VectorLength () const |
| TPoint | Rounded64ths () const |
| TPoint | Rounded () const |
| CT_IMPORT void | Polarize () |
| CT_IMPORT void | Rotate (TFixedSmall aAngle) |
| CT_IMPORT TFixedSmall | Atan2 () const |
Public Attributes | |
| TFixed | iX |
| TFixed | iY |
A point class containing two fixed-point numbers; see also TPointFixedSmall.
| CartoType::TPointFixed::TPointFixed | ( | const TPoint & | aPoint, |
| int32 | aFractionalBits | ||
| ) | [inline] |
Construct a TPointFixed from a point with 0...16 fractional bits.
| CartoType::TPointFixed::TPointFixed | ( | const TPoint & | aPoint, |
| TFixed::TRaw | |||
| ) | [inline] |
Construct a TPointFixed from a point containing raw values (with 16 fractional bits).
| void CartoType::TPointFixed::operator*= | ( | const TFixed & | aFixed | ) | [inline] |
Multiply the vector represented by the point.
| void CartoType::TPointFixed::operator+= | ( | const TPointFixed & | aPoint | ) | [inline] |
Offset a point by another point, treated as a positive vector.
| void CartoType::TPointFixed::operator-= | ( | const TPointFixed & | aPoint | ) | [inline] |
Offset a point by another point, treated as a negative vector.
| CT_EXPORT void TPointFixed::Polarize | ( | ) |
Convert a point to polar coordinates. The radius is stored in iX, the angle in radians in iY.
| TPoint CartoType::TPointFixed::Rounded | ( | ) | const [inline] |
Return an integer point, rounding the values in the TPointFixed object to units.
| TPoint CartoType::TPointFixed::Rounded64ths | ( | ) | const [inline] |
Return an integer point in rounded 64ths of the values in the TPointFixed object.
| TFixed CartoType::TPointFixed::VectorLength | ( | ) | const [inline] |
Return the length of the vector represented by the point.
The x coordinate.
The y coordinate.
1.7.5.1