fromRectangle

fun fromRectangle(rectangle: Rectangle, projection: Any? = definedExternally, result: BoundingRectangle? = definedExternally): BoundingRectangle(source)

Computes a bounding rectangle from a rectangle.

Return

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

Parameters

rectangle

The valid rectangle used to create a bounding rectangle.

projection

The projection used to project the rectangle into 2D. Default value - GeographicProjection

result

The object onto which to store the result.

See also