| 123456789101112131415161718192021222324252627282930 |
- #ifndef _point_h_
- #define _point_h_
- struct Point
- {
- public:
-
- Point( int px = 0, int py = 0 );
- Point( const Point& other );
-
- void Offset( int xOffset, int yOffset );
- void Offset( const Point& point );
-
- Point& operator += ( const Point& other );
- Point& operator -= ( const Point& other );
- int x;
- int y;
- };
- Point operator + ( const Point& p1, const Point& p2 );
- Point operator - ( const Point& p1, const Point& p2 );
- bool operator == ( const Point& p1, const Point& p2 );
- #endif
|