fromRectangle

fun fromRectangle(rectangle: Rectangle, minimumHeight: Double? = definedExternally, maximumHeight: Double? = definedExternally, ellipsoid: Ellipsoid? = definedExternally, result: OrientedBoundingBox? = definedExternally): OrientedBoundingBox(source)

Computes an OrientedBoundingBox that bounds a Rectangle on the surface of an Ellipsoid. There are no guarantees about the orientation of the bounding box.

Return

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

Parameters

rectangle

The cartographic rectangle on the surface of the ellipsoid.

minimumHeight

The minimum height (elevation) within the tile. Default value - 0.0

maximumHeight

The maximum height (elevation) within the tile. Default value - 0.0

ellipsoid

The ellipsoid on which the rectangle is defined. Default value - Ellipsoid.default

result

The object onto which to store the result.

See also