Cartesian(Coordinate) Constructor

Create a spherical Cartesian coordinate.

Definition

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

Parameters

coordinate  Coordinate
Geodetic coordinate

Remarks

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

Example

The following example demonstrates how to create a populated spherical Cartesian 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 spherical Cartesian
Cartesian cart = new Cartesian(c);

Console.WriteLine(cart); //0.64085638 0.64085638 0.42261826

See Also