Returns the minimum distance between two disjoint geometry objects. If the objects are not disjoint, the Distance of zero is returned.
JavaScript |
|
Distance( otherGeometry) |
C# |
|
double Distance( IGeometry otherGeometry) |
C++ |
|
HRESULT Distance( IGeometry* otherGeometry, double* Distance) |
Parameters
otherGeometry
An IGeometry representing the other geometry.
Return Value
Distance
The distance between the two geometries.
Exceptions
See: HRESULT Return Values for a list of possible values returned by the HRESULT.