expand

fun expand(rectangle: BoundingRectangle, point: Cartesian2, result: BoundingRectangle? = definedExternally): BoundingRectangle(source)

Computes a bounding rectangle by enlarging the provided rectangle until it contains the provided point.

Return

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

Parameters

rectangle

A rectangle to expand.

point

A point to enclose in a bounding rectangle.

result

The object onto which to store the result.

See also