Rect
Creates a new instance of Rect with the given parameters.
Parameters
x
The horizontal coordinate of the upper-left corner of the rectangle.
y
The vertical coordinate of the upper-left corner of the rectangle.
width
The width of the rectangle.
height
The height of the rectangle.
Throws
Creates a new instance of Rect with the given origin and size.
Parameters
origin
The upper-left corner of the rectangle.
size
The size of the rectangle.