CADability dotNET
Calculates the distance of the two curves in the provided direction. In other words this means how far con you move the first curve in the direction dir so that it touches the second curve? The result may be double.MaxValue if the curves will never touch eac other, or it might be negative if you would have to move first in the opposite direction of dir to touch second.
Note NoteCurrently only implemented for Line2D and Arc2D
.

Namespace: CADability.Curve2D
Assembly: CADability (in CADability.dll) Version: 1.1.4254.24737 (1.1.*)

Syntax

C#
public static double DistanceAtDirection(
	ICurve2D first,
	ICurve2D second,
	GeoVector2D dir
)
Visual Basic
Public Shared Function DistanceAtDirection ( _
	first As ICurve2D, _
	second As ICurve2D, _
	dir As GeoVector2D _
) As Double
Visual C++
public:
static double DistanceAtDirection(
	ICurve2D^ first, 
	ICurve2D^ second, 
	GeoVector2D dir
)

Parameters

first
Type: CADability.Curve2D..::..ICurve2D
Fisrt curve
second
Type: CADability.Curve2D..::..ICurve2D
Second curve
dir
Type: CADability..::..GeoVector2D
Direction of movement or distance

Return Value

Distance

See Also