Rectangle.union

Rectangle.union

Class Overview | Class Members | This Package | All Packages

Syntax
public Rectangle union( Rectangle r )
Parameters
r
a rectangle.
Returns
the smallest rectangle containing both the specified rectangle and this rectangle.
Description
Computes the union of this rectangle with the specified rectangle. Returns a new rectangle that represents the union of the two rectangles.