CartoType API
Public Member Functions | Public Attributes
CartoType::TPointFixedSmall Class Reference

#include <cartotype_arithmetic.h>

List of all members.

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

Detailed Description

A point class containing two fixed-point numbers; see also TPointFixed.


Constructor & Destructor Documentation

CartoType::TPointFixedSmall::TPointFixedSmall ( const TPoint aPoint,
int32  aFractionalBits 
) [inline]

Construct a TPointFixedSmall from a point with 0...27 fractional bits.


Member Function Documentation

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).


Member Data Documentation

The x coordinate.

The y coordinate.


The documentation for this class was generated from the following files: