|
constexpr | Point (const SDL_Point &p={}) |
| Wraps Point.
|
|
constexpr | Point (int x, int y) |
| Constructs from its fields.
|
|
constexpr | Point (const SDL_FPoint &p) |
| Explicit conversion from FPoint.
|
|
constexpr bool | operator== (const Point &other) const |
| Default comparison operator.
|
|
constexpr bool | operator== (const SDL_Point &p) const |
| Compares with the underlying type.
|
|
constexpr | operator bool () const |
| Check if valid.
|
|
constexpr int | GetX () const |
| Get x coordinate.
|
|
constexpr Point & | SetX (int newX) |
| Set the x coordinate.
|
|
constexpr int | GetY () const |
| Get y coordinate.
|
|
constexpr Point & | SetY (int newY) |
| Set the y.
|
|
constexpr bool | IsInRect (const Rect &r) const |
| Determine whether a point resides inside a rectangle.
|
|
constexpr Point | operator- () const |
| Get point's memberwise negation.
|
|
constexpr Point | operator+ (const Point &other) const |
| Get point's memberwise addition with another point.
|
|
constexpr Point | operator- (const Point &other) const |
| Get point's memberwise subtraction with another point.
|
|
constexpr Point | operator/ (int value) const |
| Get point's memberwise division by an integer.
|
|
constexpr FPoint | operator/ (float value) const |
| Get point's memberwise division by an integer.
|
|
constexpr Point | operator/ (const Point &other) const |
| Get point's memberwise division by another point.
|
|
constexpr Point | operator% (int value) const |
| Get point's memberwise remainder from division by an integer.
|
|
constexpr Point | operator% (const Point &other) const |
| Get point's memberwise remainder from division by another point.
|
|
constexpr Point | operator* (int value) const |
| Get point's memberwise multiplication by an integer.
|
|
constexpr FPoint | operator* (float value) const |
| Get point's memberwise multiplication by an integer.
|
|
constexpr Point | operator* (const Point &other) const |
| Get point's memberwise multiplication by another point.
|
|
constexpr Point & | operator+= (const Point &other) |
| Memberwise add another point.
|
|
constexpr Point & | operator-= (const Point &other) |
| Memberwise subtract another point.
|
|
constexpr Point & | operator/= (int value) |
| Memberwise divide by an integer.
|
|
constexpr Point & | operator/= (const Point &other) |
| Memberwise divide by another point.
|
|
constexpr Point & | operator%= (int value) |
| Memberwise remainder from division by an integer.
|
|
constexpr Point & | operator%= (const Point &other) |
| Memberwise remainder from division by another point.
|
|
constexpr Point & | operator*= (int value) |
| Memberwise multiply by an integer.
|
|
constexpr Point & | operator*= (const Point &other) |
| Memberwise multiply by another point.
|
|
constexpr Point | GetClamped (const Rect &rect) const |
| Get a point with coordinates modified so it fits into a given rect.
|
|
constexpr Point & | Clamp (const Rect &rect) |
| Clamp point coordinates to make it fit into a given rect.
|
|
constexpr Point | GetWrapped (const Rect &rect) const |
| Get a point wrapped within a specified rect.
|
|
constexpr Point & | Wrap (const Rect &rect) |
| Wrap point coordinates within a specified rect.
|
|
constexpr | operator FPoint () const |
| Converts to FPoint.
|
|