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

#include <cartotype_base.h>

Inheritance diagram for CartoType::TPoint:
CartoType::TOutlinePoint

List of all members.

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

Detailed Description

A point in two-dimensional space.


Constructor & Destructor Documentation

CartoType::TPoint::TPoint ( ) [inline]

Create a point with coordinates (0,0).

CartoType::TPoint::TPoint ( int32  aX,
int32  aY 
) [inline]

Create a point, specifying coordinates.


Member Function Documentation

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.


Member Data Documentation

The x coordinate.

The y coordinate.


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