Public Member Functions | |
| RectangleT (PointT< TPosition > position, SizeT< TSize > size) | |
| Initializes a new instance of the RectangleT<TPosition,TSize> class with specified coordinates and dimensions. | |
| RectangleT (TPosition x, TPosition y, TSize width, TSize height) | |
| Initializes a new instance of the RectangleT<TPosition,TSize> class with specified coordinates and dimensions. | |
| override bool | Equals (object? obj) |
| Determines whether the specified object is equal to the current RectangleT<TPosition,TSize>. | |
| override int | GetHashCode () |
| Returns a hash code for the current point. | |
| override string | ToString () |
| Returns a string representation of the rectangle. | |
Properties | |
| TPosition | X [get] |
| Gets or sets the X coordinate of the top-left corner of the rectangle. | |
| TPosition | Y [get] |
| Gets the Y coordinate of the top-left corner of the rectangle. | |
| TSize | Width [get] |
| Gets the width of the rectangle. | |
| TSize | Height [get] |
| Gets the height of the rectangle. | |
| PointT< TPosition > | Position [get] |
| Gets the position of the rectangle. | |
| SizeT< TSize > | Size [get] |
| Gets the size of the rectangle. | |
Represents a rectangle with generic coordinates and dimensions.
| TPosition | The type of the position values (e.g., int, float). |
| TSize | The type of the size values (e.g., int, float). |
Definition at line 17 of file Rectangle.cs.
|
inline |
Initializes a new instance of the RectangleT<TPosition,TSize> class with specified coordinates and dimensions.
| position | The X,Y coordinates of the top-left corner of the rectangle. |
| size | The Size of the rectangle. |
Definition at line 25 of file Rectangle.cs.
|
inline |
Initializes a new instance of the RectangleT<TPosition,TSize> class with specified coordinates and dimensions.
| x | The X coordinate of the top-left corner of the rectangle. |
| y | The Y coordinate of the top-left corner of the rectangle. |
| width | The width of the rectangle. |
| height | The height of the rectangle. |
Definition at line 39 of file Rectangle.cs.
|
inline |
Determines whether the specified object is equal to the current RectangleT<TPosition,TSize>.
| obj | The object to compare with the current rectangle. |
true if the objects are equal; otherwise, false.Definition at line 80 of file Rectangle.cs.
|
inline |
Returns a hash code for the current point.
Definition at line 113 of file Rectangle.cs.
|
inline |
Returns a string representation of the rectangle.
Definition at line 122 of file Rectangle.cs.
|
get |
Gets the height of the rectangle.
Definition at line 63 of file Rectangle.cs.
|
get |
Gets the position of the rectangle.
Definition at line 68 of file Rectangle.cs.
Gets the size of the rectangle.
Definition at line 73 of file Rectangle.cs.
|
get |
Gets the width of the rectangle.
Definition at line 58 of file Rectangle.cs.
|
get |
Gets or sets the X coordinate of the top-left corner of the rectangle.
Definition at line 48 of file Rectangle.cs.
|
get |
Gets the Y coordinate of the top-left corner of the rectangle.
Definition at line 53 of file Rectangle.cs.