fromRectangle3D

fun fromRectangle3D(rectangle: Rectangle? = definedExternally, ellipsoid: Ellipsoid? = definedExternally, surfaceHeight: Double? = definedExternally, result: BoundingSphere? = definedExternally): BoundingSphere(source)

Computes a bounding sphere from a rectangle in 3D. The bounding sphere is created using a subsample of points on the ellipsoid and contained in the rectangle. It may not be accurate for all rectangles on all types of ellipsoids.

Return

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

Parameters

rectangle

The valid rectangle used to create a bounding sphere.

ellipsoid

The ellipsoid used to determine positions of the rectangle. Default value - Ellipsoid.default

surfaceHeight

The height above the surface of the ellipsoid. Default value - 0.0

result

The object onto which to store the result.

See also