union

Update this Rect to enclose itself and the specified rectangle. If the specified rectangle is empty, nothing is done. If this rectangle is empty it is set to the specified rectangle.

Parameters

r

The rectangle being unioned with this rectangle

open fun union(r: RelativeRectFast)

Update this Rect to enclose itself and the specified rectangle. If the specified rectangle is empty, nothing is done. If this rectangle is empty it is set to the specified rectangle.

Parameters

bottom

The bottom edge being unioned with this rectangle

left

The left edge being unioned with this rectangle

right

The right edge being unioned with this rectangle

top

The top edge being unioned with this rectangle

open fun union(left: Double, top: Double, right: Double, bottom: Double)

Update this Rect to enclose itself and the [x,y] coordinate. There is no check to see that this rectangle is non-empty.

Parameters

x

The x coordinate of the point to add to the rectangle

y

The y coordinate of the point to add to the rectangle

open fun union(x: Double, y: Double)