subsample

fun subsample(rectangle: Rectangle, ellipsoid: Ellipsoid? = definedExternally, surfaceHeight: Double? = definedExternally, result: ReadonlyArray<Cartesian3>? = definedExternally): ReadonlyArray<Cartesian3>(source)

Samples a rectangle so that it includes a list of Cartesian points suitable for passing to BoundingSphere.fromPoints. Sampling is necessary to account for rectangles that cover the poles or cross the equator.

Return

The modified result parameter or a new Array of Cartesians instances if none was provided.

Parameters

rectangle

The rectangle to subsample.

ellipsoid

The ellipsoid to use. Default value - Ellipsoid.default

surfaceHeight

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

result

The array of Cartesians onto which to store the result.

See also