fromDegrees

fun fromDegrees(longitude: Double, latitude: Double, height: Double? = definedExternally, result: Cartographic? = definedExternally): Cartographic(source)

Creates a new Cartographic instance from longitude and latitude specified in degrees. The values in the resulting object will be in radians.

Return

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

Parameters

longitude

The longitude, in degrees.

latitude

The latitude, in degrees.

height

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

result

The object onto which to store the result.

See also