Home → Operators → Line/Tanto,C,C

Line/Tanto,C,C

Common Tangent to Two Circles

Creates a line tangent to two circles simultaneously. Up to four tangent lines exist between two circles — external and internal. A direction selector specifies which tangent line to create.

What It Does

Between two non-overlapping circles, up to four common tangent lines exist:

  • 2 external tangents — run alongside both circles without crossing between them
  • 2 internal tangents — cross between the circles

The Line/Tanto,C,C operator computes all valid tangent lines analytically and creates the one specified by the direction selector.

Product Tier: The created line is a persistent product entity. It is tracked by the dependency system and can be used as input to subsequent operators.

Syntax

Line/Tanto, C, C2

Quick Input

C: 0 C2: 1 Type: left_right, right_left, left, right in drop down menu
ParameterDescriptionRequired
Typeleft, right, left_right, right_left (dropdown)✓ Yes
C1First circle reference✓ Yes
C2Second circle reference✓ Yes

Direction Selector

Stand inside C (the first circle) and look towards C2 (the second circle). The selector describes which side the tangent line is on from your perspective:

SelectorResultTangent Type
leftUpper external tangentExternal
rightLower external tangentExternal
right_leftRight-crossing internal tangentInternal
left_rightLeft-crossing internal tangentInternal
How to choose: Stand inside C looking towards C2. The tangent line on your left = upper external tangent. The tangent line on your right = lower external tangent. Swap the circle order and left/right swap too.

Worked Examples

Setup: C0 = Centre (0, 0), Radius 15 C1 = Centre (80, 0), Radius 15 // Upper external tangent C: 0 C2: 1 Type: left → L0: upper external tangent (Y = +15) Tangent to C0 at (0, 15), tangent to C1 at (80, 15) // Lower external tangent C: 0 C2: 1 Type: right → L1: lower external tangent (Y = -15) Tangent to C0 at (0, -15), tangent to C1 at (80, -15) // Internal crossing tangents C: 0 C2: 1 Type: left_right → L2: crossing tangent (exits C0 left, enters C1 right) C: 0 C2: 1 Type: right_left → L3: crossing tangent (exits C0 right, enters C1 left)

Analytic Rule

External tangents: Offset both circles outward by R on the same side. The intersection of the two offset circles' centres gives the external centre of similitude. Tangent lines pass through this point. Internal tangents: Offset circles outward on opposite sides. The intersection gives the internal centre of similitude. Tangent lines pass through this point. Tangency condition: dist(circle centre, tangent line) = circle radius exactly. Result: All tangent points and line equations are exact analytic values. No iteration.

FAQ

What if the circles overlap?

Overlapping circles have no internal tangents (the circles intersect). External tangents still exist if the circles are not concentric. XyzPilot returns an error for internal tangents when circles overlap.

What if one circle is inside the other?

If one circle is entirely inside the other, no common tangents exist. XyzPilot returns an error.

How do I create a tangent line from a point to a circle?

Use Line/P,Tanto,C — the tangent from point to circle operator.

How do I create a line tangent to one circle at a given angle?

Use Line/C,Atangl — the tangent to circle at angle operator.