00001 #ifndef XCLONE_UTILITY_H 00002 #define XCLONE_UTILITY_H 00003 00004 struct Point 00005 { 00006 Point() : x(0), y(0) {} 00007 Point(int xPos, int yPos) : x(xPos), y(yPos) {} 00008 int x; 00009 int y; 00010 00011 bool operator == (const Point& p) const 00012 { 00013 return (x == p.x && y == p.y); 00014 } 00015 00016 Point operator - () const 00017 { 00018 return Point(-x, -y); 00019 } 00020 }; 00021 00022 00023 #endif