Package: pumpkin.geom
The Rectangle class defines a 2d area of space indicated by a top-left (x & y) corner and a bottom right corner.
Create empty Rectangle. | |
Create Rectangle from Rect class. | |
Create Rectangle from x,y, width & height. |
Create a copy of the Rectangle. | |
Returns true if the x & y position is inside the rectangle. | |
Returns true if the other Rectangle intersects this one. |
Underlying Rect class. | |
Indicates the x position. | |
Indicates the y position. | |
Indicates the rectangle width. | |
Indicates the rectangle height. | |
Indicates the left edge. | |
Indicates the top edge. | |
Indicates the right edge, equivalent to x + width. | |
Indicates the bottom edge, equivalent to y + height. |