Click or drag to resize

ECEFECEFToLatLong Method (ECEF)

Returns a Geodetic Coordinate object based on the provided ECEF coordinate.

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.3.1.1
Syntax
C#
public static Coordinate ECEFToLatLong(
	ECEF ecef
)

Parameters

ecef
Type: CoordinateSharpECEF
ECEF Coordinate

Return Value

Type: Coordinate
Coordinate
Examples
The following example creates (converts to) a geodetic Coordinate object based on an ECEF object.
ECEF ecef = new ECEF(4090.877, 4090.877, 2679.708);
Coordinate c = ECEF.ECEFToLatLong(ecef);

Console.WriteLine(c); //N 24º 59' 59.986" E 45º 0' 0"
Console.WriteLine(c.ECEF.GeoDetic_Height.Meters); //1499.97912820436
See Also