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