fromCartesian3

fun fromCartesian3(cartesian3: Cartesian3, result: Spherical? = definedExternally): Spherical(source)

Converts the provided Cartesian3 into Spherical coordinates.

Return

The modified result parameter, or a new instance if one was not provided.

Parameters

cartesian3

The Cartesian3 to be converted to Spherical.

result

The object in which the result will be stored, if undefined a new instance will be created.

See also