union

infix fun Rectangle.union(rectangle: Rectangle): Rectangle(source)

Returns a Rectangle that is the union of this and the given one.

Return

a Rectangle representing the union of the 2 rectangles

Parameters

rectangle

to union with