Computes the shortest spatial distance between two objects.
Namespace:
ceometric.VectorGeometryAssembly: ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)
Syntax
C# |
---|
public double DistanceTo( Line line ) |
Visual Basic (Declaration) |
---|
Public Function DistanceTo ( _ line As Line _ ) As Double |
Visual C++ |
---|
public: double DistanceTo( Line^ line ) |
Parameters
- line
- Type: ceometric.VectorGeometry..::.Line
A line.
Return Value
Returns the shortest spatial distance between the edge and line. Returns 0 if the edge intersects line
Remarks
This distance is always positive or zero.
If the edge exactly intersects line, this method returns exactly zero only in rare cases due to floating point arithmetic.