00001
00002 #ifndef __point_hh
00003 #define __point_hh
00004
00005
00006
00007
00008
00009 namespace otk {
00010
00011
00012 class Point {
00013 private:
00014
00015 int _x;
00016
00017 int _y;
00018
00019 public:
00020
00021 Point() : _x(0), _y(0) {}
00022
00023 Point(int x, int y) : _x(x), _y(y) {}
00024
00025
00026 void setX(int x) { _x = x; }
00027
00028 int x() const { return _x; }
00029
00030
00031 void setY(int y) { _y = y; }
00032
00033 int y() const { return _y; }
00034
00035
00036 void setPoint(int x, int y) { _x = x; _y = y; }
00037 };
00038
00039 }
00040
00041 #endif