(no commit message)
[asgard.git] / Coordinate.cpp
blob37fd36c281be9ca65cfba338828eb4380ac0e262
1 #include "Coordinate.h"
3 Coordinate::Coordinate()
5 //Initialize to zero
6 this->x = 0;
7 this->y = 0;
10 Coordinate::Coordinate(int x, int y)
12 this->x = x;
13 this->y = y;
16 int Coordinate::getX()
18 return this->x;
21 int Coordinate::getY()
23 return this->y;
26 void Coordinate::setX(int x)
28 this->x = x;
31 void Coordinate::setY(int y)
33 this->y = y;