#include <coord.h>
Public Member Functions | |
Coord () | |
Coord (int iX, int iY) | |
void | Set (int iX, int iY) |
Coord | operator+ (const Coord &rkCoord) const |
Coord | operator- (const Coord &rkCoord) const |
Coord | operator * (float fScale) const |
Coord & | operator+= (const Coord &rkCoord) |
Coord & | operator-= (const Coord &rkCoord) |
Coord & | operator *= (float fScale) |
Coord | operator- () const |
bool | operator== (const Coord &rkCoord) const |
bool | operator!= (const Coord &rkCoord) const |
Public Attributes | |
int | x |
int | y |
|
Reset to 0 |
|
|
|
Set components
|
|
Add two coords
|
|
Subract two coords
|
|
Scale coord
|
|
Add two coords and store
|
|
Subtract two coords and store
|
|
Scale coord
|
|
Negate coord
|
|
Compare two coords
|
|
Compare two coords
|
|
X coordinate |
|
Y coordinate |