Trim/L,to,C
Trim Line to Circle
Trims a line to a circle boundary. Start/End selector specifies which endpoint.
What It Does
The Trim/L,to,C operator trims a line to a circle boundary. The Start/End selector specifies which endpoint of the line to trims.
Trims vs Extend: Trim shortens an entity to reach a boundary. Extend lengthens an entity to a boundary.
Syntax
Trim/L,to,C, LINE, to, CIRCLE, Start|End
Quick Input
LINE: [reference]
CIRCLE: [boundary reference]
End: ● Start ○ End
Direction Selector
| Selector | Meaning |
|---|---|
Start | Trim the start endpoint of the line to the circle |
End | Trim the end endpoint of the line to the circle |
Two intersections may exist. Use XLarge/XSmall/YLarge/YSmall to specify which intersection to trim to.
Worked Examples
L0=horizontal (0,50)→(200,50), C0=centre(100,50) r=40
Trim/L0, to, C0, End, XLarge
→ L0: (0,50)→(140,50) [end trimmed to right intersection]
Trim/L0, to, C0, Start, XSmall
→ L0: (60,50)→(200,50) [start trimmed to left intersection]
Analytic Rule
Find intersection of line and circle.
Move the selected endpoint to the intersection.
The line is shortened to meet the boundary.
Result: Exact analytic trim.
FAQ
What if the line does not intersect the circle?
XyzPilot returns an error. The line must intersect the circle.
What is the difference between Trim and Extend?
Trim shortens an entity to a boundary. Extend lengthens an entity to reach a boundary. Both use the same Start/End selector.