scaleToGeocentricSurface

fun scaleToGeocentricSurface(cartesian: Cartesian3, result: Cartesian3? = definedExternally): Cartesian3(source)

Scales the provided Cartesian position along the geocentric surface normal so that it is on the surface of this ellipsoid.

Return

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

Parameters

cartesian

The Cartesian position to scale.

result

The object onto which to store the result.

See also