scaleToGeodeticSurface
fun scaleToGeodeticSurface(cartesian: Cartesian3, result: Cartesian3? = definedExternally): Cartesian3(source)
Scales the provided Cartesian position along the geodetic surface normal so that it is on the surface of this ellipsoid. If the position is at the center of the ellipsoid, this function returns undefined.
Return
The modified result parameter, a new Cartesian3 instance if none was provided, or undefined if the position is at the center.
Parameters
cartesian
The Cartesian position to scale.
result
The object onto which to store the result.