new Rectangle(x, y, width, height)
Rectangle constructor.
Parameters:
Name |
Type |
Description |
x |
|
|
y |
|
|
width |
|
|
height |
|
|
- Source:
-
Members
EMPTY
- Source:
-
Methods
getBottom()
Returns:
- Source:
-
getHeight()
Returns:
- Source:
-
getLeft()
Returns:
- Source:
-
getRight()
Returns:
- Source:
-
getTop()
Returns:
- Source:
-
getWidth()
Returns:
- Source:
-
getX()
Returns:
- Source:
-
getY()
Returns:
- Source:
-
intersectsWithInclusive(rectangle) → {boolean}
Determines if this rectangle intersects with rect.
Parameters:
Name |
Type |
Description |
rectangle |
|
|
Returns:
- 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:
-