![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class represents a single coordinate in internal TMC coordinate space.
Public Member Functions | |
void | translate (const TSLCoord &delta) |
TSLCoord & | operator+= (const TSLCoord &delta) |
TSLCoord & | operator-= (const TSLCoord &delta) |
bool | validateTranslation (TSLTMC dx, TSLTMC dy) |
TSLCoord () | |
TSLCoord (TSLTMC x, TSLTMC y) | |
TSLCoord | operator+ (const TSLCoord &anotherCoord) const |
TSLCoord | operator- (const TSLCoord &anotherCoord) const |
TSLCoord & | operator= (const TSLCoord &anotherCoord) |
bool | operator> (const TSLCoord &anotherCoord) const |
bool | operator< (const TSLCoord &anotherCoord) const |
bool | operator== (const TSLCoord &anotherCoord) const |
bool | operator!= (const TSLCoord &anotherCoord) const |
double | distance (const TSLCoord &anotherCoord) const |
double | squareDistance (const TSLCoord &anotherCoord) const |
void | translate (TSLTMC dx, TSLTMC dy) |
TSLTMC | x () const |
void | x (TSLTMC xcoord) |
TSLTMC | y () const |
void | y (TSLTMC ycoord) |
Public Attributes | |
TSLTMC | m_x |
TSLTMC | m_y |
|
inline |
|
inline |
Constructor by argument of a Coord class object.
x | The x coordinate value |
y | The y coordinate value |
|
inline |
Calculate the distance between this coordinate and another.
anotherCoord | Source for calculation. |
|
inline |
Compares two coordinates.
anotherCoord | Source for comparison. |
Adds two coordinates.
Translates the coordinate by the specified delta coordinate.
anotherCoord | Delta coordinate. |
Add AND Assignment operator.
Translates the coordinate by the specified delta coordinate and assigns it.
delta | Delta coordinate. |
Subtracts two coordinates.
Translates the coordinate by the negative of the specified delta coordinate.
anotherCoord | Delta coordinate. |
Subtract AND Assignment operator.
Translates the coordinate by the negative of the specified delta coordinate and assigns it.
delta | Delta coordinate. |
|
inline |
Less than operator.
Performs a comparison between two coordinates.
anotherCoord | Source for comparison. |
Assignment operator.
Assigns the x and y values of the argument coordinate to those of this coordinate.
anotherCoord | Source for new value. |
|
inline |
Compares two coordinates.
anotherCoord | Source for comparison. |
|
inline |
Greater than operator.
Performs a comparison between two coordinates.
anotherCoord | Source comparison. |
|
inline |
Calculate the square distance between this coordinate and another.
anotherCoord | Source for calculation. |
|
inline |
|
inline |
Translates the coordinate by the specified delta values.
dx | Delta in X direction. |
dy | Delta in Y direction. |
|
inline |
|
inline |
Query the x value of the coordinate.
|
inline |
Set the x value of the coordinate.
xcoord | New value |
|
inline |
Query the y value of the coordinate.
|
inline |
Set the y value of the coordinate.
ycoord | New value |
TSLTMC TSLCoord::m_x |
TSLTMC TSLCoord::m_y |