Advertisement
DragonOsman

Point.h

Mar 17th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #ifndef POINT_GUARD
  2. #define POINT_GUARD
  3.  
  4. //typedef void (*Callback)(void*,void*);
  5.  
  6. namespace Graph_lib {
  7.  
  8.     struct Point {
  9.         int x, y;
  10.         //  Point(int xx, int yy) : x(xx), y(yy) { }
  11.         //  Point() :x(0), y(0) { }
  12.  
  13.         //  Point& operator+=(Point d) { x+=d.x; y+=d.y; return *this; }
  14.     };
  15.  
  16.     inline bool operator==(Point a, Point b) { return a.x == b.x && a.y == b.y; }
  17.  
  18.     inline bool operator!=(Point a, Point b) { return !(a == b); }
  19.  
  20.  
  21. }
  22. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement