This document is archived and information here might be outdated.  Recommended version.


IGeodeticMeasurement.CalculateGeodeticDistanceAndAzimuth Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

IGeodeticMeasurement.CalculateGeodeticDistanceAndAzimuth Method

Calculates distance(in meters) and azimuths(in radians) on the Spheroid between this and otherPoint using given geodetic curve type.

[Visual Basic .NET]
Public Sub CalculateGeodeticDistanceAndAzimuth ( _
    ByVal otherPoint As IPoint, _
    ByVal curveType As esriGeodeticType, _
    ByRef distanceMeters As Double, _
    ByRef azimuth12Radians As Double, _
    ByRef azimuth21Radians As Double _
)
[C#]
public void CalculateGeodeticDistanceAndAzimuth (
    IPoint otherPoint,
    esriGeodeticType curveType,
    ref double distanceMeters,
    ref double azimuth12Radians,
    ref double azimuth21Radians
);
[C++]
HRESULT CalculateGeodeticDistanceAndAzimuth(
  IPoint* otherPoint,
  esriGeodeticType curveType,
  double* distanceMeters,
  double* azimuth12Radians,
  double* azimuth21Radians
);
[C++]

Parameters otherPoint [in]
otherPoint is a parameter of type IPoint curveType [in]
curveType is a parameter of type esriGeodeticType distanceMeters [out] distanceMeters is a parameter of type double azimuth12Radians [out] azimuth12Radians is a parameter of type double azimuth21Radians [out] azimuth21Radians is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IGeodeticMeasurement Interface