ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Geometry Namespace / Coordinate3D Structure / Azimuth Property
Example

In This Topic
    Azimuth Property (Coordinate3D)
    In This Topic
    Gets the azimuth of the Coordinate3D. The azimuth is measured in radians.
    Syntax
    public double Azimuth {get;}
    Public ReadOnly Property Azimuth As Double
    Remarks
    The azimuth is the angle between the yz-plane and the Coordinate3D measured in the X-direction. The azimuth is measured in radians in a clockwise direction and has a value between 0 and 2 * PI inclusive.

    Coordinate3D

    Example
    Getting vector azimuth
    Coordinate3D vector = new Coordinate3D(0, 7, 0);
    double azimuth = vector.Azimuth;      // azimuth = 0
    
    vector.SetComponents(1, 1, 42);
    azimuth = vector.Azimuth;
    double degrees = AngularUnit.Degrees.ConvertFromRadians(azimuth);       // degrees = 45
    
    vector.SetComponents(-8, 8, 2);
    azimuth = vector.Azimuth;
    degrees = AngularUnit.Degrees.ConvertFromRadians(azimuth);              // degrees = 315
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also