fromRectangleWithHeights2D

fun fromRectangleWithHeights2D(rectangle: Rectangle? = definedExternally, projection: Any? = definedExternally, minimumHeight: Double? = definedExternally, maximumHeight: Double? = definedExternally, result: BoundingSphere? = definedExternally): BoundingSphere(source)

Computes a bounding sphere from a rectangle projected in 2D. The bounding sphere accounts for the object's minimum and maximum heights over the rectangle.

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

minimumHeight

The minimum height over the rectangle. Default value - 0.0

maximumHeight

The maximum height over the rectangle. Default value - 0.0

result

The object onto which to store the result.

See also