The Rectangle type exposes the following members.
| Name | Description | |
|---|---|---|
|
|
Rectangle |
| Name | Description | |
|---|---|---|
|
|
clone |
Clones rectangle. |
|
|
contains |
Determines if the specified point is contained within the rectangular region defined by this Rectangle. |
|
|
equals |
Determines whether the specified rectangle equals to this Rectangle. |
|
|
intersect |
Calculates intersection of two rectangles. |
|
|
intersectsWith |
Determines if this Rectangle intersects with rect. |
|
|
round |
Rounds all parameters: x, y, width, and height; and returns new Rectangle object. |
| Name | Description | |
|---|---|---|
|
|
height |
The rectangle height. |
|
|
width |
The rectangle width. |
|
|
x |
The x-coordinate of the upper-left corner. |
|
|
y |
The y-coordinate of the upper-left corner. |