union

infix fun union(rectangle: Rectangle): Rectangle

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