Rectangle

Rectangle

new Rectangle(x, y, width, height)

Rectangle constructor.
Parameters:
Name Type Description
x
y
width
height
Source:

Members

EMPTY

Source:

Methods

getBottom()

Returns:
Type Description
Bottom
Source:

getHeight()

Returns:
Type Description
Height
Source:

getLeft()

Returns:
Type Description
Left
Source:

getRight()

Returns:
Type Description
Right
Source:

getTop()

Returns:
Type Description
Top
Source:

getWidth()

Returns:
Type Description
Width
Source:

getX()

Returns:
Type Description
X
Source:

getY()

Returns:
Type Description
Y
Source:

intersectsWithInclusive(rectangle) → {boolean}

Determines if this rectangle intersects with rect.
Parameters:
Name Type Description
rectangle
Returns:
Type Description
boolean
Source:

(static) fromLTRB()

FromLTRB Shared Method Produces a Rectangle class from left, top, right, and bottom coordinates.
Source:

(static) intersect()

Intersect Shared Method Produces a new Rectangle by intersecting 2 existing Rectangles. Returns null if there is no intersection.
Source: