Variable: width
Holds the width of the rectangle. Default is 0.
Variable: x
Holds the x-coordinate of the point. Default is 0.
Variable: y
Holds the y-coordinate of the point. Default is 0.
Function: add
Adds the given rectangle to this rectangle.
Function: equals
Returns true if the given object equals this rectangle.
Function: fromRectangle
Returns a new
Function: getCenterX
Returns the x-coordinate of the center point.
Function: getCenterY
Returns the y-coordinate of the center point.
Function: getPoint
Returns the top, left corner as a new
Function: grow
Grows the rectangle by the given amount, that is, this method subtracts the given amount from the x- and y-coordinates and adds twice the amount to the width and height.
Function: intersect
Changes this rectangle to where it overlaps with the given rectangle.
Function: rotate90
Rotates this rectangle by 90 degree around its center point.
Function: setRect
Sets this rectangle to the specified values
Generated using TypeDoc
Variable: height
Holds the height of the rectangle. Default is 0.