Skip to main content

unionOfRectangles

unionOfRectangles(rect1, rect2): RectangleXY

Computes the bounding box union of two RectangleXY objects. This operation returns a new RectangleXY that is large enough to encompass both input rectangles.

Parameters

rect1

RectangleXY

The first RectangleXY object.

rect2

RectangleXY

The second RectangleXY object.

Returns

RectangleXY

A new RectangleXY object representing the union of the two input rectangles.