This document is archived and information here might be outdated. Recommended version. |
The radians per angular unit.
[Visual Basic .NET] Public ReadOnly Property RadiansPerUnit As Double
[C#] public double RadiansPerUnit {get;}
[C++]
HRESULT get_RadiansPerUnit(
System.Double* RadiansPerUnit
);
[C++]
Parameters RadiansPerUnit [out, retval]
RadiansPerUnit is a parameter of type double*
public void angularUnitRadiansExample()
{
Type factoryType=Type.GetTypeFromProgID("esriGeometry.SpatialReferenceEnvironment");
System.Object obj=Activator.CreateInstance(factoryType);
ISpatialReferenceFactory3 spatialReferenceFactory=obj as ISpatialReferenceFactory3;
IUnit unit=spatialReferenceFactory.CreateUnit((int)esriSRUnitType.esriSRUnit_ArcSecond);
IAngularUnit angularUnit=unit as IAngularUnit;
//Get the RadiansPerUnit value
System.Windows.Forms.MessageBox.Show(Convert.ToString(angularUnit.RadiansPerUnit));
}