CoordinatePartToRadians Method

Returns Coordinate part in radians.

Definition

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

Return Value

Double
double

Example

The following example demonstrates how to get the radian values of the geodetic coordinate parts.
C#
//Create a new coordinate at N25, E45
Coordinate c = new Coordinate(25,45);

//Get the radian values of each part
Console.WriteLine(c.Latitude.ToRadians()); //0.436332312998582
Console.WriteLine(c.Longitude.ToRadians()); //0.785398163397448

See Also