union
Update this Rect to enclose itself and the specified rectangle. If the specified rectangle is empty, nothing is done. If this rectangle is empty it is set to the specified rectangle.
Parameters
The left edge being unioned with this rectangle
The top edge being unioned with this rectangle
The right edge being unioned with this rectangle
The bottom edge being unioned with this rectangle
Update this Rect to enclose itself and the specified rectangle. If the specified rectangle is empty, nothing is done. If this rectangle is empty it is set to the specified rectangle.
Parameters
The rectangle being unioned with this rectangle
Update this Rect to enclose itself and the x,y coordinate. There is no check to see that this rectangle is non-empty.
Parameters
The x coordinate of the point to add to the rectangle
The y coordinate of the point to add to the rectangle