Rectangle.union

Overview | Methods | Fields | ThisPackage | All Packages

Rectangle.union

Retrieves a Rectangle object that represents the smallest rectangle that contains two specified rectangular areas.

Syntax

public static Rectangle union( Rectangle a, Rectangle b)

Parameters

a

A Rectangle object that specifies the first rectangle in the union.

b

A Rectangle object that specifies the second rectangle in the union.

Return Value

Returns a Rectangle object that represents the union of the two specified rectangles.