union

fun union(left: BoundingRectangle, right: BoundingRectangle, result: BoundingRectangle? = definedExternally): BoundingRectangle(source)

Computes a bounding rectangle that is the union of the left and right bounding rectangles.

Return

The modified result parameter or a new BoundingRectangle instance if one was not provided.

Parameters

left

A rectangle to enclose in bounding rectangle.

right

A rectangle to enclose in a bounding rectangle.

result

The object onto which to store the result.

See also