|
CartoType API
|
#include <cartotype_arithmetic.h>
Public Member Functions | |
| TPointFixedSmall (TFixedSmall aX, TFixedSmall aY) | |
| TPointFixedSmall (int32 aX, int32 aY) | |
| TPointFixedSmall (const TPoint &aPoint) | |
| TPointFixedSmall (const TPointFixed &aPoint) | |
| TPointFixedSmall (const TPoint &aPoint, int32 aFractionalBits) | |
| bool | operator== (const TPointFixedSmall &aPoint) const |
| bool | operator!= (const TPointFixedSmall &aPoint) const |
| void | operator+= (const TPointFixedSmall &aPoint) |
| void | operator-= (const TPointFixedSmall &aPoint) |
| CT_IMPORT void | Rotate (TFixedSmall aAngle) |
| CT_IMPORT void | HyperbolicRotate (TFixedSmall aZ) |
| CT_IMPORT TFixedSmall | Atan2 () const |
| CT_IMPORT TFixedSmall | Atanh () const |
Public Attributes | |
| TFixedSmall | iX |
| TFixedSmall | iY |
A point class containing two fixed-point numbers; see also TPointFixed.
| CartoType::TPointFixedSmall::TPointFixedSmall | ( | const TPoint & | aPoint, |
| int32 | aFractionalBits | ||
| ) | [inline] |
Construct a TPointFixedSmall from a point with 0...27 fractional bits.
| CT_EXPORT void TPointFixedSmall::HyperbolicRotate | ( | TFixedSmall | aZ | ) |
Perform hyperbolic rotation according to the specified angle. If the original vector is the unit vector (1,0) the result is iX = cosh (aAngle) and iY = sinh (aAngle).
| void CartoType::TPointFixedSmall::operator+= | ( | const TPointFixedSmall & | aPoint | ) | [inline] |
Offset a point by another point, treated as a positive vector.
| void CartoType::TPointFixedSmall::operator-= | ( | const TPointFixedSmall & | aPoint | ) | [inline] |
Offset a point by another point, treated as a negative vector.
| CT_EXPORT void TPointFixedSmall::Rotate | ( | TFixedSmall | aAngle | ) |
Rotate the vector according to the specified angle. If the original vector is the unit vector (1,0) the result is iX = cos (aAngle) and iY = sin (aAngle).
The x coordinate.
The y coordinate.
1.7.5.1