[]
Initializes a new instance of the Rect<T> struct.
public Rect(T left, T top, T width, T height)
Type | Name | Description |
---|---|---|
T | left | The x-coordinate of the left edge of this Rect structure. |
T | top | The y-coordinate of the top edge of this Rect structure. |
T | width | The width of this Rect structure. |
T | height | the height of this Rect structure. |
Initializes a new instance of the Rect<T> struct.
public Rect(Point<T> location, Size<T> size)
Type | Name | Description |
---|---|---|
Point<T> | location | A Point<T> that represents the upper-left corner of the Rect. |
Size<T> | size | A Size that represents the width and height of the Rect. |