computeRectangleFromPositions
fun computeRectangleFromPositions(positions: ReadonlyArray<Cartesian3>, ellipsoid: Ellipsoid? = definedExternally, arcType: ArcType? = definedExternally, result: Rectangle? = definedExternally): Rectangle(source)
Computes a rectangle which encloses the polygon defined by the list of positions, including cases over the international date line and the poles.
Return
The result rectangle
Parameters
positions
A linear ring defining the outer boundary of the polygon.
ellipsoid
The ellipsoid to be used as a reference. Default value - Ellipsoid.default
arcType
The type of line the polygon edges must follow. Valid options are ArcType.GEODESIC and ArcType.RHUMB. Default value - ArcType.GEODESIC
result
An object in which to store the result.