Types
Link copied to clipboard
interface FromPositionsOptions
Functions
Link copied to clipboard
fun computeRectangleFromPositions(positions: ReadonlyArray<Cartesian3>, ellipsoid: Ellipsoid? = definedExternally, arcType: ArcType? = definedExternally, result: Rectangle? = definedExternally): Rectangle
Computes a rectangle which encloses the polygon defined by the list of positions, including cases over the international date line and the poles.
Link copied to clipboard
Computes the geometric representation of a polygon, including its vertices, indices, and a bounding sphere.
Link copied to clipboard
A description of a polygon from an array of positions. Polygon geometry can be rendered with both Primitive and GroundPrimitive.
Link copied to clipboard
fun pack(value: PolygonGeometry, array: ReadonlyArray<Double>, startingIndex: Int? = definedExternally): ReadonlyArray<Double>
Stores the provided instance into the provided array.
Link copied to clipboard
fun unpack(array: ReadonlyArray<Double>, startingIndex: Int? = definedExternally, result: PolygonGeometry? = definedExternally)
Retrieves an instance from a packed array.