#include <vertex.h>
Public Member Functions | |
Coordinates (const float x=0., const float y=0.) | |
float | squareDistanceTo (const Coordinates &othr) const |
float | distanceTo (const Coordinates &othr) const |
float | x () const |
float | y () const |
void | setX (float x) |
void | setY (float y) |
void | setCoord (float x, float y) |
bool | operator== (const Coordinates &othr) |
bool | operator!= (const Coordinates &othr) |
Coordinates | operator+ (const Coordinates &c) |
Coordinates | operator- (const Coordinates &c) |
Coordinates | operator/ (const float value) |
Coordinates | operator+= (const Coordinates &c) |
Coordinates are composed by two float values, x and y.