clone

fun clone(rectangle: BoundingRectangle, result: BoundingRectangle? = definedExternally): BoundingRectangle(source)

Duplicates a BoundingRectangle instance.

Return

The modified result parameter or a new BoundingRectangle instance if one was not provided. (Returns undefined if rectangle is undefined)

Parameters

rectangle

The bounding rectangle to duplicate.

result

The object onto which to store the result.

See also