Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef POINT_GUARD
- #define POINT_GUARD
- //typedef void (*Callback)(void*,void*);
- namespace Graph_lib {
- struct Point {
- int x, y;
- // Point(int xx, int yy) : x(xx), y(yy) { }
- // Point() :x(0), y(0) { }
- // Point& operator+=(Point d) { x+=d.x; y+=d.y; return *this; }
- };
- inline bool operator==(Point a, Point b) { return a.x == b.x && a.y == b.y; }
- inline bool operator!=(Point a, Point b) { return !(a == b); }
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement