This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IM > IMensuration Interface > IMensuration.GetDistance Method (ArcObjects .NET 10.5 SDK) |
Computes the actual distance between two points given their map points.
[Visual Basic .NET] Public Sub GetDistance ( _ ByVal pFirstPoint As IPoint, _ ByVal pSecondPoint As IPoint, _ ByRef ppDistMeasurement As IDistanceMeasurement _ )
[C#] public void GetDistance ( IPoint pFirstPoint, IPoint pSecondPoint, ref IDistanceMeasurement ppDistMeasurement );
[C++]
HRESULT GetDistance(
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