CartoType API
Public Member Functions | Public Attributes
CartoType::TPoint2D< T > Class Template Reference

#include <cartotype_base.h>

List of all members.

Public Member Functions

 TPoint2D ()
 TPoint2D (T aX, T aY)
bool operator== (const TPoint2D< T > &aPoint) const
bool operator!= (const TPoint2D< T > &aPoint) const
void operator+= (const TPoint2D< T > &aPoint)
void operator-= (const TPoint2D< T > &aPoint)
bool operator< (const TPoint2D< T > &aPoint) const
bool operator> (const TPoint2D< T > &aPoint) const

Public Attributes

iX
iY

Detailed Description

template<class T>
class CartoType::TPoint2D< T >

A templated 2D point class.


Constructor & Destructor Documentation

template<class T>
CartoType::TPoint2D< T >::TPoint2D ( ) [inline]

Create a point with coordinates (0,0).

template<class T>
CartoType::TPoint2D< T >::TPoint2D ( aX,
aY 
) [inline]

Create a point, specifying coordinates.


Member Function Documentation

template<class T>
bool CartoType::TPoint2D< T >::operator!= ( const TPoint2D< T > &  aPoint) const [inline]

The inequality operator.

template<class T>
void CartoType::TPoint2D< T >::operator+= ( const TPoint2D< T > &  aPoint) [inline]

Offset a point by another point, treated as a positive vector.

template<class T>
void CartoType::TPoint2D< T >::operator-= ( const TPoint2D< T > &  aPoint) [inline]

Offset a point by another point, treated as a negative vector.

template<class T>
bool CartoType::TPoint2D< T >::operator< ( const TPoint2D< T > &  aPoint) const [inline]

The less-than operator, ordering points by x coordinate, then y coordinate.

template<class T>
bool CartoType::TPoint2D< T >::operator== ( const TPoint2D< T > &  aPoint) const [inline]

The equality operator.

template<class T>
bool CartoType::TPoint2D< T >::operator> ( const TPoint2D< T > &  aPoint) const [inline]

The greater-than operator, ordering points by x coordinate, then y coordinate.


Member Data Documentation

template<class T>
T CartoType::TPoint2D< T >::iX

The x coordinate.

template<class T>
T CartoType::TPoint2D< T >::iY

The y coordinate.


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