Click or drag to resize

CoordinatePartToRadians Method

Returns Coordinate part in radians.

Namespace:  CoordinateSharp
Assembly:  CoordinateSharp (in CoordinateSharp.dll) Version: 2.12.1.1
Syntax
C#
public double ToRadians()

Return Value

Type: Double
double
Examples
The following example demonstrates how to get the radian values of the geodetic coordinate parts.
//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