|
SDL3pp
A slim C++ wrapper for SDL3
|
The structure that defines a point (using floating point values). More...


Public Member Functions | |
| constexpr | FPoint (const FPointRaw &p={}) |
| Wraps FPoint. More... | |
| constexpr | FPoint (float x, float y) |
| Constructs from its fields. More... | |
| constexpr | operator bool () const |
| Check if valid. More... | |
| constexpr float | GetX () const |
| Get the x coordinate. More... | |
| constexpr FPoint & | SetX (float newX) |
| Set the x coordinate. More... | |
| constexpr float | GetY () const |
| Get the y coordinate. More... | |
| constexpr FPoint & | SetY (float newY) |
| Set the y coordinate. More... | |
| constexpr bool | InRect (const FRectRaw &r) const |
| Determine whether a point resides inside a floating point rectangle. More... | |
| constexpr FPoint | operator- () const |
| Get point's memberwise negation. More... | |
| constexpr FPoint | operator+ (const FPoint &other) const |
| Get point's memberwise addition with another point. More... | |
| constexpr FPoint | operator- (const FPoint &other) const |
| Get point's memberwise subtraction with another point. More... | |
| constexpr FPoint | operator/ (float value) const |
| Get point's memberwise division by an float. More... | |
| constexpr FPoint | operator/ (const FPoint &other) const |
| Get point's memberwise division by another point. More... | |
| constexpr FPoint | operator* (float value) const |
| Get point's memberwise multiplication by an float. More... | |
| constexpr FPoint | operator* (const FPoint &other) const |
| Get point's memberwise multiplication by another point. More... | |
| constexpr FPoint & | operator+= (const FPoint &other) |
| Memberwise add another point. More... | |
| constexpr FPoint & | operator-= (const FPoint &other) |
| Memberwise subtract another point. More... | |
| constexpr FPoint & | operator/= (float value) |
| Memberwise divide by an float. More... | |
| constexpr FPoint & | operator/= (const FPoint &other) |
| Memberwise divide by another point. More... | |
| constexpr FPoint & | operator*= (float value) |
| Memberwise multiply by an float. More... | |
| constexpr FPoint & | operator*= (const FPoint &other) |
| Memberwise multiply by another point. More... | |
| constexpr FPoint | GetClamped (const FRect &rect) const |
| Get a point with coordinates modified so it fits into a given rect. More... | |
| constexpr FPoint & | Clamp (const FRect &rect) |
| Clamp point coordinates to make it fit into a given rect. More... | |
| constexpr FPoint | GetWrapped (const FRect &rect) const |
| Get a point wrapped within a specified rect. More... | |
| constexpr FPoint & | Wrap (const FRect &rect) |
| Wrap point coordinates within a specified rect. More... | |
|
inlineconstexpr |
| p | the value to be wrapped |
|
inlineconstexpr |
| x | the value for x. |
| y | the value for y. |
| [in] | rect | Rectangle to clamp with |
| [in] | rect | Rectangle to clamp with |
| [in] | rect | Rectangle to wrap with |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineexplicitconstexpr |
| [in] | other | Multiplier |
|
inlineconstexpr |
| [in] | value | Multiplier |
| [in] | other | Multiplier |
|
inlineconstexpr |
| [in] | value | Multiplier |
| [in] | other | Point to add to the current one |
|
inlineconstexpr |
| [in] | other | Point to subtract from the current one |
| [in] | other | Divisor |
|
inlineconstexpr |
| [in] | value | Divisor |
| [in] | other | Divisor |
|
inlineconstexpr |
| [in] | value | Divisor |
|
inlineconstexpr |
| newX | the new x coordinate. |
|
inlineconstexpr |
| newY | the new y coordinate. |
| [in] | rect | Rectangle to wrap with |