An Angle can be created in several ways.

Initialize an Angle using a value in degrees:

Angle latitude = new Angle(41.6);
Angle longitude = -88.0;

Initialize an Angle using degrees, arc minutes and arc seconds:

Angle latitude = new Angle(41, 20, 5.1);

Convert an Angle to a decimal

Angle latitude = new Angle(41.6);
decimal value = latitude;
decimal decimalValue = latitude * 2.0;

Last edited Jul 27, 2014 at 4:42 PM by porrey, version 4


No comments yet.