ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Geometry Namespace / Coordinate3D Structure / QueryPolarComponents Method
Example

In This Topic
    QueryPolarComponents Method
    In This Topic
    Gets the polar components of the Coordinate3D. Angles are in radians.
    Syntax
    Public Function QueryPolarComponents() As Tuple(Of Double,Double,Double)
    public Tuple<double,double,double> QueryPolarComponents()

    Return Value

    A Tuple containing the azimuth, inclination, and magnitude. Azimuth and inclination are measured in radians.
    Remarks

    Vector

    Example
    Vector Polar Coordinates
    {
      Coordinate3D polarVector = new Coordinate3D(0, 7, 0);
      Tuple<double, double, double> polarComponents = polarVector.QueryPolarComponents();
      // polarComponents.Item1 = 0  (azimuth)
      // polarComponents.Item2 = 0 (inclination)
      // polarComponents.Item3 = 7 (magnitude)
    
      polarVector.SetPolarComponents(Math.PI / 4, Math.PI / 2, 8);
      polarComponents = polarVector.QueryComponents();
      // polarComponents.Item1 = 0 (x)
      // polarComponents.Item2 = 0 (y)
      // polarComponents.Item3 = 7 (z)
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also