public static AngularUnit Degrees {get;}
Public Shared ReadOnly Property Degrees As AngularUnit
public static AngularUnit Degrees {get;}
Public Shared ReadOnly Property Degrees As AngularUnit
// convert 45 degrees to radians double radians = AngularUnit.Degrees.ConvertToRadians(45); // convert PI to degrees double degrees = AngularUnit.Degrees.ConvertFromRadians(Math.PI);
// custom unit - 3 radians per unit var myAngularUnit = AngularUnit.CreateAngularUnit("myCustomAngularUnit", 3); string Name = myAngularUnit.Name; // myCustomAngularUnit double Factor = myAngularUnit.ConversionFactor; // 3 int Code = myAngularUnit.FactoryCode; // 0 because it is a custom angular unit double radiansUnit = myAngularUnit.RadiansPerUnit; // 3 // convert 10 degrees to my unit double converted = AngularUnit.Degrees.ConvertTo(10, myAngularUnit); // convert it back to degrees converted = myAngularUnit.ConvertTo(converted, AngularUnit.Degrees); // convert 1 radian into my angular units converted = myAngularUnit.ConvertFromRadians(1); // get the wkt string wkt = myAngularUnit.Wkt; // create an angular unit from this wkt var anotherAngularUnit = AngularUnit.CreateAngularUnit(wkt); // anotherAngularUnit.ConversionFactor = 3 // anotherAngularUnit.FactoryCode = 0 // anotherAngularUnit.RadiansPerUnit = 3
Target Platforms: Windows 10, Windows 8.1, Windows 7