transformPositionToScaledSpace

fun transformPositionToScaledSpace(position: Cartesian3, result: Cartesian3? = definedExternally): Cartesian3(source)

Transforms a Cartesian X, Y, Z position to the ellipsoid-scaled space by multiplying its components by the result of Ellipsoid.oneOverRadii.

Return

The position expressed in the scaled space. The returned instance is the one passed as the result parameter if it is not undefined, or a new instance of it is.

Parameters

position

The position to transform.

result

The position to which to copy the result, or undefined to create and return a new instance.

See also