fromRadians

fun fromRadians(longitude: Double, latitude: Double, height: Double? = definedExternally, ellipsoid: Ellipsoid? = definedExternally, result: Cartesian3? = definedExternally): Cartesian3(source)

Returns a Cartesian3 position from longitude and latitude values given in radians.

const position = Cartesian3.fromRadians(-2.007, 0.645);

Return

The position

Parameters

longitude

The longitude, in radians

latitude

The latitude, in radians

height

The height, in meters, above the ellipsoid. Default value - 0.0

ellipsoid

The ellipsoid on which the position lies. Default value - Ellipsoid.default

result

The object onto which to store the result.

See also