17 #include <SDL2/SDL_rect.h> 31 point(
const int x_,
const int y_)
50 operator SDL_Point()
const;
54 return x == point.
x && y == point.
y;
64 return std::tie(x, y) < std::tie(point.
x, point.
y);
69 return x < point.
x || (x == point.
x && y <= point.
y);
74 return {x + point.
x, y + point.
y};
81 return {x - point.
x, y - point.
y};
bool operator==(const point &point) const
point operator-(const point &point) const
point(const SDL_Point &p)
point & operator+=(const point &point)
point operator+(const point &point) const
bool operator!=(const point &point) const
bool operator<(const point &point) const
point & operator-=(const point &point)
std::ostream & operator<<(std::ostream &stream, const point &point)
bool operator<=(const point &point) const
point(const int x_, const int y_)