fromRectangle2D

fun fromRectangle2D(    rectangle: Rectangle? = definedExternally,     projection: Any? = definedExternally,     result: BoundingSphere? = definedExternally): BoundingSphere(source)

Computes a bounding sphere from a rectangle projected in 2D.

Return

The modified result parameter or a new BoundingSphere instance if none was provided.

Parameters

rectangle

The rectangle around which to create a bounding sphere.

projection

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

result

The object onto which to store the result.

See also