fromDegrees
fun fromDegrees(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 degrees.
const position = Cartesian3.fromDegrees(-115.0, 37.0);
Content copied to clipboard
Return
The position
Parameters
longitude
The longitude, in degrees
latitude
The latitude, in degrees
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.