Click or drag to resize

CartesianCartesianToLatLong Method (Cartesian)

Returns a geodetic Coordinate object based on the provided Cartesian coordinate.

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.8.1.1
Syntax
C#
public static Coordinate CartesianToLatLong(
	Cartesian cart
)

Parameters

cart
Type: CoordinateSharpCartesian
Cartesian Coordinate

Return Value

Type: Coordinate
Coordinate
Examples
The following example creates (converts to) a geodetic Coordinate object based on a spherical Cartesian object.
Cartesian cart = new Cartesian(0.64085638, 0.64085638, 0.42261826);
Coordinate c = Cartesian.CartesianToLatLong(cart);
Console.WriteLine(c); //N 24º 59' 60" E 45º 0' 0"
See Also