Computes the shortest spatial distance between two objects.

Namespace:  ceometric.VectorGeometry
Assembly:  ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)

Syntax

C#
public double DistanceTo(
	Edge edge
)
Visual Basic (Declaration)
Public Function DistanceTo ( _
	edge As Edge _
) As Double
Visual C++
public:
double DistanceTo(
	Edge^ edge
)

Parameters

edge
Type: ceometric.VectorGeometry..::.Edge
An edge.

Return Value

Returns the shortest spatial distance between the edge and edge. Returns 0 if the edge intersects edge.

Remarks

This distance is always positive or zero.

If the edge exactly intersects edge, this method may not exactly return zero only due to floating point arithmetic.

See Also