Computes the distance between two points on the map and returns the result.
[Visual Basic 6.0] Function ComputeDistance(
ByVal p1 As IPoint, _
ByVal p2 As IPoint _
) As Double
[Visual Basic .NET] Public Function ComputeDistance ( _ ByVal p1 As IPoint, _ ByVal p2 As IPoint _ ) As Double
[C#] public double ComputeDistance ( IPoint p1, IPoint p2 );
[Java] public double computeDistance ( IPoint p1, IPoint p2 ) throws IOException, AutomationException
[C++] HRESULT ComputeDistance( IPoint* p1, IPoint* p2, double* Distance );
Parameters
p1 [in]
p1 is a parameter of type IPoint
p2 [in]
p2 is a parameter of type IPoint
Distance [out, retval]
Distance is a parameter of type double
IMap Interface | IMap.MapUnits Property | IMap.DistanceUnits Property