MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSLMUCoord Class Reference

Detailed Description

This class represents a point in Map Units, i.e. a point in a particular coordinate system.

Public Member Functions

 TSLMUCoord ()
 Default Constructor.
 
 TSLMUCoord (double x, double y)
 
 TSLMUCoord (const TSLMUCoord &other)
 Copy Constructor.
 
 ~TSLMUCoord ()
 Destructor.
 
double x () const
 Query the X coordinate of this point.
 
void x (double xx)
 Set the X coordinate of this point.
 
double y () const
 Query the Y coordinate of this point.
 
void y (double yy)
 Set the Y coordinate of this point.
 
bool operator== (const TSLMUCoord &c) const
 
bool operator!= (const TSLMUCoord &c) const
 
TSLMUCoordoperator= (const TSLMUCoord &c)
 Assignment Operator.
 
TSLMUCoordoperator+ (const TSLMUCoord &c)
 Addition Operator.
 
TSLMUCoordoperator- (const TSLMUCoord &c)
 Subtraction Operator.
 
TSLMUCoordoperator* (const TSLMUCoord &c)
 Multiplication Operator (pairwise)
 
TSLMUCoordoperator/ (const TSLMUCoord &c)
 
bool operator< (const TSLMUCoord &c) const
 
bool operator> (const TSLMUCoord &c) const
 

Constructor & Destructor Documentation

◆ TSLMUCoord() [1/3]

TSLMUCoord::TSLMUCoord ( )
inline

Default Constructor.

◆ TSLMUCoord() [2/3]

TSLMUCoord::TSLMUCoord ( double x,
double y )
inline

Constructor

Parameters
xThe X coordinate for this point
yThe Y coordinate for this point

◆ TSLMUCoord() [3/3]

TSLMUCoord::TSLMUCoord ( const TSLMUCoord & other)
inline

Copy Constructor.

◆ ~TSLMUCoord()

TSLMUCoord::~TSLMUCoord ( )
inline

Destructor.

Member Function Documentation

◆ operator!=()

bool TSLMUCoord::operator!= ( const TSLMUCoord & c) const
inline

Inequality Operator Points are considered equal if they are within 1e-5 of each other

◆ operator*()

TSLMUCoord & TSLMUCoord::operator* ( const TSLMUCoord & c)
inline

Multiplication Operator (pairwise)

◆ operator+()

TSLMUCoord & TSLMUCoord::operator+ ( const TSLMUCoord & c)
inline

Addition Operator.

◆ operator-()

TSLMUCoord & TSLMUCoord::operator- ( const TSLMUCoord & c)
inline

Subtraction Operator.

◆ operator/()

TSLMUCoord & TSLMUCoord::operator/ ( const TSLMUCoord & c)
inline

Division Operator (pairwise). This class does not prevent the caller from dividing by zero

◆ operator<()

bool TSLMUCoord::operator< ( const TSLMUCoord & c) const
inline

Less-Than operator. This is intended for use when sorting coordinate in a list. The X coordinate will take priority over the Y coordinate in this comparison.

◆ operator=()

TSLMUCoord & TSLMUCoord::operator= ( const TSLMUCoord & c)
inline

Assignment Operator.

◆ operator==()

bool TSLMUCoord::operator== ( const TSLMUCoord & c) const
inline

Equality Operator Points are considered equal if they are within 1e-5 of each other

◆ operator>()

bool TSLMUCoord::operator> ( const TSLMUCoord & c) const
inline

Greater-Than operator. This is intended for use when sorting coordinate in a list. The X coordinate will take priority over the Y coordinate in this comparison.

◆ x() [1/2]

double TSLMUCoord::x ( ) const
inline

Query the X coordinate of this point.

◆ x() [2/2]

void TSLMUCoord::x ( double xx)
inline

Set the X coordinate of this point.

◆ y() [1/2]

double TSLMUCoord::y ( ) const
inline

Query the Y coordinate of this point.

◆ y() [2/2]

void TSLMUCoord::y ( double yy)
inline

Set the Y coordinate of this point.