geocentricSurfaceNormal

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

Computes the unit vector directed from the center of this ellipsoid toward the provided Cartesian position.

Return

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

Parameters

cartesian

The Cartesian for which to to determine the geocentric normal.

result

The object onto which to store the result.

See also