scaleToGeodeticHeight

external fun scaleToGeodeticHeight(positions: ReadonlyArray<JsDouble>, height: Double? = definedExternally, ellipsoid: Ellipsoid? = definedExternally, scaleToSurface: Boolean? = definedExternally): ReadonlyArray<JsDouble>(source)

Scales each position of a geometry's position attribute to a height, in place.

Return

The input array of positions, scaled to height

Parameters

positions

The array of numbers representing the positions to be scaled

height

The desired height to add to the positions Default value - 0.0

ellipsoid

The ellipsoid on which the positions lie. Default value - Ellipsoid.default

scaleToSurface

true if the positions need to be scaled to the surface before the height is added. Default value - true

See also