Geotools.Net

Envelope.Distance Method 

Computes the distance between this and another Envelope.

[Visual Basic]
Overloads Public Function Distance( _
   ByVal env As Envelope _
) As Double
[C#]
public double Distance(
   Envelope env
);

Parameters

env
The other envelope to be used for the comparison.

Return Value

A double containing the distance between the two envelopes.

Remarks

The distance between overlapping Envelopes is 0. Otherwise, the distance is the Euclidean distance between the closest points.

See Also

Envelope Class | Envelope Members | Geotools.Geometries Namespace