AngularValue Constructor

public AngularValue()

public AngularValue(AngularValue source)

 

Description

The AngularValue constructor creates a new instance of the AngularValue class.  There are two signatures for this constructor.  The first is the default constructor, which takes no arguments and produces an AngularValue whose units are degrees and whose value is 0.  The second signature is the copy constructor, which takes a single AngularValue as an argument and produces an AngularValue whose value matches the argument.

 

Example

void AngularValue_AngularValue(GeoCalc.DataSource data)

{

GeoCalc.AngularValue av = new GeoCalc.AngularValue();

string issuer = "BMG";

string code = "DEGREES";

GeoCalc.AngularUnit au = data.GetAngularUnit(issuer, code);

av.set_Units(au);

av.set_InUnits(-14.65);

 

GeoCalc.AngularValue avCopy = new GeoCalc.AngularValue(av);

}