ECEF(Coordinate) Constructor

Creates an ECEF coordinate in kilometers.

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 2.21.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
public ECEF(
	Coordinate coordinate
)

Parameters

coordinate  Coordinate
Coordinate

Remarks

ECEF values will be populated by converting from the passed geodetic Coordinate object.

Example

The following example demonstrates how to create a populated ECEF coordinate based on a converted geodetic coordinate.
C#
//Create a geodetic coordinate at N25, E45
Coordinate c = new Coordinate(25,45);

//Create and convert geodetic to ECEF
ECEF ecef = new ECEF(c);

Console.WriteLine(ecef); 4089.916 km, 4089.916 km, 2679.074 km

See Also