Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
534 B

  1. #ifndef POINT_H
  2. #define POINT_H
  3. class point
  4. {
  5. public:
  6. long x, y;
  7. point( void ) { ; };
  8. point( point const & p ) { x = p.x; y = p.y; };
  9. point( POINT const & p ) { x = p.x; y = p.y; };
  10. bool operator < ( point const & r ) const { return x < r.x || (x == r.x && y < r.y); };
  11. bool operator > ( point const & r ) const { return !(*this < r); };
  12. bool operator == ( point const & r ) const { return x == r.x && y == r.y; };
  13. bool operator != ( point const & r ) const { return !(*this == r); };
  14. };
  15. #endif POINT_H