Initializes a rectangle with the specified coordinate and size values.
The x-coordinate of the rectangle's origin point.
The y-coordinate of the rectangle's origin point.
The width of the rectangle.
The height of the rectangle.
The height of a rectangle.
Readonly
originA point that specifies the coordinates of the rectangle's origin.
Readonly
sizeA size that specifies the height and width of the rectangle.
The width of a rectangle.
The x-coordinate of the rectangle's origin point.
The y-coordinate of the rectangle's origin point.
Generated using TypeDoc
The
Rect
class represents a rectangle. Rectangles consist of an x and y coordinate pair identifying a minimum x value, a minimum y value, and a width and height.