ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Core.Geometry Namespace / AngularUnit Class / ConvertToRadians Method
Angle in the units of this instance.
Example

In This Topic
    ConvertToRadians Method
    In This Topic
    Converts the angle to radians.
    Syntax
    public double ConvertToRadians( 
       double angle
    )
    Public Function ConvertToRadians( _
       ByVal angle As Double _
    ) As Double

    Parameters

    angle
    Angle in the units of this instance.

    Return Value

    Angle converted to radians.
    Example
    AngularUnit - Convert between degrees and radians
    // convert 45 degrees to radians
    double radians = AngularUnit.Degrees.ConvertToRadians(45);
    
    // convert PI to degrees
    double degrees = AngularUnit.Degrees.ConvertFromRadians(Math.PI);
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also