CADability dotNET
Calculates the center points and the tangential points of the circles that are tangential to the given curves. If the curves are lines or circles all possible solutions are revealed. If the curves are more complex, only the solution that is closest to the given points is revealed. Each solution consists of 4 points: 1.: the center, 2.: the tangential point to c1, 3.: the tangential point to c2, 4.: the tangential point to c3. The radius mus be calculated by the distance of the center to one of the tangential points. The length of the returned array is a multiple of 4 (or 0)

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

Syntax

C#
public static GeoPoint2D[] TangentCircle(
	ICurve2D c1,
	ICurve2D c2,
	ICurve2D c3,
	GeoPoint2D p1,
	GeoPoint2D p2,
	GeoPoint2D p3
)
Visual Basic
Public Shared Function TangentCircle ( _
	c1 As ICurve2D, _
	c2 As ICurve2D, _
	c3 As ICurve2D, _
	p1 As GeoPoint2D, _
	p2 As GeoPoint2D, _
	p3 As GeoPoint2D _
) As GeoPoint2D()
Visual C++
public:
static array<GeoPoint2D>^ TangentCircle(
	ICurve2D^ c1, 
	ICurve2D^ c2, 
	ICurve2D^ c3, 
	GeoPoint2D p1, 
	GeoPoint2D p2, 
	GeoPoint2D p3
)

Parameters

c1
Type: CADability.Curve2D..::..ICurve2D
first tangential curve
c2
Type: CADability.Curve2D..::..ICurve2D
second tangential curve
c3
Type: CADability.Curve2D..::..ICurve2D
third tangential curve
p1
Type: CADability..::..GeoPoint2D
startpoint on c1
p2
Type: CADability..::..GeoPoint2D
startpoint on c2
p3
Type: CADability..::..GeoPoint2D
startpoint on c3

Return Value

Quadruples of GeoPoint2D defining 0 or more circles

See Also