Structure representing a 2D axis-aligned bounding rectangle.
More...
|
| | Rectangle (int x, int y, int width, int height) |
| | Creates a new rectangle.
|
| |
|
override bool | Equals ([NotNullWhen(true)] object? obj) |
| |
|
override int | GetHashCode () |
| |
|
override string | ToString () |
| |
|
bool | Equals (Rectangle other) |
| |
|
|
int | X |
| | The horizontal position of the rectangle.
|
| |
|
int | Y |
| | The vertical position of the rectangle.
|
| |
|
int | Width |
| | The width of the rectangle.
|
| |
|
int | Height |
| | The height of the rectangle.
|
| |
|
|
int | Left [get] |
| | Gets the position of the left edge of the rectangle.
|
| |
|
int | Top [get] |
| | Gets the position of the top edge of the rectangle.
|
| |
|
int | Right [get] |
| | Gets the position of the right edge of the rectangle.
|
| |
|
int | Bottom [get] |
| | Gets the position of the bottom edge of the rectangle.
|
| |
|
Point | TopLeft [get] |
| | Gets the top-left position of the rectangle.
|
| |
|
Point | Size [get] |
| | Gets the absolute size of the rectangle.
|
| |
Structure representing a 2D axis-aligned bounding rectangle.
◆ Rectangle()
| Rectangle |
( |
int | x, |
|
|
int | y, |
|
|
int | width, |
|
|
int | height ) |
|
inline |
Creates a new rectangle.
- Parameters
-
| x | The horizontal position of the rectangle. |
| y | The vertical position of the rectangle. |
| width | The width of the rectangle. |
| height | The height of the rectangle. |
◆ operator!=()
Checks if two rectangles are not equal.
- Parameters
-
| a | Left side of the operation |
| b | Right side of the operation |
- Returns
- False if the rectangles are equal, true otherwise.
◆ operator==()
Checks if two rectangles are equal.
- Parameters
-
| a | Left side of the operation |
| b | Right side of the operation |
- Returns
- True if the rectangles are equal, false otherwise.
The documentation for this struct was generated from the following file:
- /builds/universe/graphics/src/Inertia.Platform/Rectangle.cs