|
| constexpr | FPoint (const FPointRaw &p={}) noexcept |
| | Wraps FPoint.
|
| constexpr | FPoint (float x, float y) noexcept |
| | Constructs from its fields.
|
| constexpr | operator bool () const noexcept |
| | Check if valid.
|
| constexpr float | GetX () const noexcept |
| | Get the x coordinate.
|
| constexpr FPoint & | SetX (float newX) noexcept |
| | Set the x coordinate.
|
| constexpr float | GetY () const noexcept |
| | Get the y coordinate.
|
| constexpr FPoint & | SetY (float newY) noexcept |
| | Set the y coordinate.
|
| bool | InRect (const FRectRaw &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.
|
The structure that defines a point (using floating point values).
- Since
- This struct is available since SDL 3.2.0.
- Category:
- Wrap extending struct
- See also
- FRect.GetEnclosingPoints
-
FPoint.InRect