Holds a 2D point. More...
#include <point.hpp>
Public Member Functions | |
constexpr | point () |
Initialize to 0 by default. More... | |
constexpr | point (int x, int y) |
constexpr | point (const SDL_Point &p) |
constexpr bool | operator== (const point &point) const |
constexpr bool | operator!= (const point &point) const |
constexpr bool | operator< (const point &point) const |
constexpr bool | operator<= (const point &point) const |
constexpr point | operator+ (const point &point) const |
constexpr point & | operator+= (const point &point) |
constexpr point | operator- () const |
constexpr point | operator- (const point &point) const |
constexpr point & | operator-= (const point &point) |
constexpr point | operator* (int s) const |
constexpr point & | operator*= (int s) |
constexpr point | operator/ (int s) const |
constexpr point & | operator/= (int s) |
constexpr point | operator* (const point &p) const |
constexpr point & | operator*= (const point &p) |
constexpr point | operator/ (const point &p) const |
constexpr point & | operator/= (const point &p) |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 38 of file point.hpp.
References operator==().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 33 of file point.hpp.
Referenced by operator!=().