Returns the center of this Rectangle on the X axis.
Returns the center of this Rectangle on the Y axis.
returns the left edge of the rectangle
returns the right edge of the rectangle
returns the top edge of the rectangle
A constant empty rectangle.
An empty rectangle
Returns a rectangle from the Window.
Enlarges rectangle that way its corners lie on grid
Returns itself.
Creates a clone of this Rectangle
a copy of the rectangle
Test if this Rectangle collides with another Rectangle.
The other rectangle.
Checks whether the x and y coordinates given are contained within this Rectangle
The X coordinate of the point to test
The Y coordinate of the point to test
Whether the x/y coordinates are within this Rectangle
Test if a segment intersect with this Rectangle.
Start of the segment.
End of the segment.
Padding X to add to this Rectangle.
Padding Y to add to this Rectangle.
Pads the rectangle making it grow in all directions. If paddingY is omitted, both paddingX and paddingY will be set to paddingX.
Returns itself.
Returns a rectangle from your Application.
The Application
Create a rectangle from a set of 4 points.
Create a rectangle from two sets of points.
First set of points, x1 & y1.
Second set of points, x2 & y2.
Create a rectangle from a Sprite or a Container.
The object to create a Rectangle from.
Generated using TypeDoc
returns the bottom edge of the rectangle
{number}