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
The first RectangleXY object.
rect2
The second RectangleXY object.
Returns
A new RectangleXY object representing the union of the two input rectangles.