ESRI.ArcGIS.Mobile
Distance Method
See Also  Send Feedback
ESRI.ArcGIS.Mobile.Geometries Namespace > Envelope Class : Distance Method

other
Geometry used to calculate distance.
Returns the minimum distance between the two geometries.

Syntax

Visual Basic (Declaration) 
Public Function Distance( _
   ByVal other As IGeometry _
) As Double
C# 
public double Distance( 
   IGeometry other
)

Parameters

other
Geometry used to calculate distance.

Remarks

Returns distance as double, if envelopes intersect returns 0.
If one of the geometries is empty, returns negative value (-1).

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also