Common Tangent to Two Circles

Use Line/Tanto,C,C — Common Tangent to Two Circles — to connect two circles with external tangent lines. The operator creates the tangent line and automatically trims the circles — no separate trim step required.

Intermediate ⏱ 10 min Line/Tanto,C,C Direction Selectors

What You Will Build

Two circles connected by two common tangent lines — a common profile shape used in CNC milling for connecting bosses, slots, and rounded profiles. The Line/Tanto,C,C operator (Common Tangent to Two Circles) creates the tangent line and automatically trims both circles to arcs in a single operation.

Key principle: In XyzPilot, Line/Tanto,C,C does everything automatically — it creates the tangent line AND trims the circles to arcs. You do not need separate Trim operations. The direction dropdown (Right / Left / Right_Left / Left_Right) selects which tangent solution to use.

Operators Used

Point/X,Y,Z Circle/Centre,R Line/Tanto,C,C — Common Tangent to Two Circles

Geometry for This Tutorial

EntityDefinitionResult
P0Centre of left circle(0, 0)
P1Centre of right circle(80, 0)
C0Left circle, R=20Centre (0,0), R=20
C1Right circle, R=15Centre (80,0), R=15
L0Common tangent — upper (Left)Tangent to C0 and C1, Y positive side
L1Common tangent — lower (Right)Tangent to C0 and C1, Y negative side
01

Create Two Centre Points and Circles

Create the two centre points, then create a circle at each centre with its radius.

// Step 1a — Left circle centre
Point/0, 0, 0 → P0 = (0, 0)

// Step 1b — Right circle centre
Point/80, 0, 0 → P1 = (80, 0)

// Step 1c — Left circle, radius 20
Circle/Centre,P0, R=20 → C0

// Step 1d — Right circle, radius 15
Circle/Centre,P1, R=15 → C1
Quick Input — Circle/Centre, R
P: 0
R: 20
Z: 0

You now have two full circles: C0 centred at (0,0) with R=20, and C1 centred at (80,0) with R=15.

02

Create the Upper Common Tangent Line — Direction: Left

Use Line/Tanto,C,C to create the upper external tangent line. Select C0 as the first circle and C1 as the second circle, then choose Left from the direction dropdown.

How to use the direction selector: Stand inside C0 (the first circle) and look towards C1 (the second circle). C0 is at (0,0) and C1 is at (80,0), so you are looking in the positive X direction. The upper tangent line (Y positive side) is on your left — so select Left. If you swapped the circle order and stood in C1 looking at C0, left and right would be reversed.
Line/Tanto,C0,C1 → Direction dropdown: Left
→ L0 created — upper external tangent line (Y=+20 side)
→ C0 automatically trimmed to arc (upper portion removed)
→ C1 automatically trimmed to arc (upper portion removed)
Quick Input — Line/Tanto,C,C
C: 0
C2: 1
Direction: Left
Automatic trim: The Line/Tanto,C,C operator automatically trims both circles at the tangent points. You do not need to run any separate Trim operation. The circles become arcs as part of this single step.

After this step: L0 is the upper tangent line. Both C0 and C1 have been automatically trimmed at the upper tangent points.

03

Create the Lower Common Tangent Line — Direction: Right

Repeat the same operator for the lower external tangent line. This time select Right from the direction dropdown.

Direction logic: Standing inside C0 looking towards C1 (positive X direction), the lower tangent line (Y negative side) is on your right — so select Right.
Line/Tanto,C0,C1 → Direction dropdown: Right
→ L1 created — lower external tangent line (Y=−20 side)
→ C0 automatically trimmed to arc (lower portion removed)
→ C1 automatically trimmed to arc (lower portion removed)
Quick Input — Line/Tanto,C,C
C: 0
C2: 1
Direction: Right

After this step: L1 is the lower tangent line. Both circles are now fully trimmed to arcs, and the profile is closed — two arcs connected by two tangent lines.

Profile complete: No further trim operations are needed. The Line/Tanto,C,C operator handled all trimming automatically in each step.
04

Verify the Closed Profile

Use Measure → Entity Info to verify each entity. Click on each line and arc to confirm the geometry is correct and the profile is closed end-to-end.

EntityTypeExpected
L0LineUpper external tangent — connects tangent point on C0 to tangent point on C1
L1LineLower external tangent — connects tangent point on C0 to tangent point on C1
A0 (from C0)ArcLeft arc — centre (0,0), R=20, connecting lower to upper tangent points
A1 (from C1)ArcRight arc — centre (80,0), R=15, connecting upper to lower tangent points

Verify that each arc endpoint connects exactly to the adjacent line endpoint. The profile should be fully closed with no gaps.

Clean up: Delete construction points P0 and P1 using Edit → Clear All Points once the profile is verified. The arcs and lines are independent of the points after creation.

Direction Selectors — Line/Tanto,C,C (Common Tangent to Two Circles)

The Line/Tanto,C,C operator presents four direction options in a dropdown. To choose the correct one, stand inside the first circle (C) and look towards the second circle (C2):

Right

The tangent line is on your right side as you look from C towards C2. When C is to the left of C2 (looking in positive X), this is the lower tangent (Y negative side).

Left

The tangent line is on your left side as you look from C towards C2. When C is to the left of C2 (looking in positive X), this is the upper tangent (Y positive side).

Right_Left

Internal (crossing) tangent — exits C on the right, enters C2 on the left. Used for crossed tangent profiles.

Left_Right

Internal (crossing) tangent — exits C on the left, enters C2 on the right. The mirror of Right_Left.

Important: The direction is always relative to standing inside the first circle (C) and looking towards the second circle (C2). If you swap the circle order in the Quick Input, the direction labels swap accordingly.

Tips & Best Practices

No separate trim needed: Line/Tanto,C,C automatically trims both circles at the tangent points. This is the same behaviour as Fillet/L,L,R — the operator does the trim as part of its execution.
Create both tangent lines before anything else: Run the upper tangent first, then the lower tangent. Both circles will be trimmed correctly after both operations.
Direction is relative to C, not C2: Always think from the perspective of standing inside the first circle and looking towards the second. Right and Left refer to your right and left in that orientation.
Circles of equal radius: When both circles have the same radius, the external tangent lines are parallel. The direction selector still works the same way — Left gives the upper parallel tangent, Right gives the lower — when standing in C looking towards C2.
Tutorial 17 — Using Construction Lines Tutorial 19 — Drawing to CNC Workflow