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


IMensuration3D.GetDistance3D Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IM > IMensuration3D Interface > IMensuration3D.GetDistance3D Method
ArcGIS Developer Help

IMensuration3D.GetDistance3D Method

Computes the 3D actual distance between two points given their 2D map points.

[Visual Basic .NET]
Public Sub GetDistance3D ( _
    ByVal pFirstPoint As IPoint, _
    ByVal pSecondPoint As IPoint, _
    ByRef ppDistMeasurement As IDistanceMeasurement _
)
[C#]
public void GetDistance3D (
    IPoint pFirstPoint,
    IPoint pSecondPoint,
    ref IDistanceMeasurement ppDistMeasurement
);
[C++]
HRESULT GetDistance3D(
  IPoint* pFirstPoint,
  IPoint* pSecondPoint,
  IDistanceMeasurement** ppDistMeasurement
);
[C++]
Parameters
pFirstPoint [in]

pFirstPoint is a parameter of type IPoint* pSecondPoint [in]
pSecondPoint is a parameter of type IPoint* ppDistMeasurement [out]
ppDistMeasurement is a parameter of type IDistanceMeasurement**

Product Availability

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

See Also

IMensuration3D Interface