CADability dotNET
Calculates the start- and endpoints of lines that are tangential to the given curves. There may be any number of solutions, including no solution. Each solution consists of two points: 1.: the startpoint, 2.: the endpoint of the Line. the startpoint lies on the first curve, the endpoint on the second. The length of the returned array is a multiple of 2 (or 0). If both curves are circles or arcs, all possible solutions are returned. If a curve is mor complex than a circle (e.g. bspline, ellipse) only the solution closest to the points p1 and p2 is returned.

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

Syntax

C#
public static GeoPoint2D[] TangentLines(
	ICurve2D first,
	ICurve2D second,
	GeoPoint2D p1,
	GeoPoint2D p2
)
Visual Basic
Public Shared Function TangentLines ( _
	first As ICurve2D, _
	second As ICurve2D, _
	p1 As GeoPoint2D, _
	p2 As GeoPoint2D _
) As GeoPoint2D()
Visual C++
public:
static array<GeoPoint2D>^ TangentLines(
	ICurve2D^ first, 
	ICurve2D^ second, 
	GeoPoint2D p1, 
	GeoPoint2D p2
)

Parameters

first
Type: CADability.Curve2D..::..ICurve2D
first curve
second
Type: CADability.Curve2D..::..ICurve2D
second curve
p1
Type: CADability..::..GeoPoint2D
point near first curve
p2
Type: CADability..::..GeoPoint2D
point near second curve

Return Value

See Also