Overview
Circle-line intersection substitutes a line equation into the circle equation and solves the resulting quadratic, or equivalently projects the circle center onto the line and compares distance to the radius.
Finds where a line crosses, touches, or misses a circle.
Compact metadata for implementation and discovery.
Circle-line intersection substitutes a line equation into the circle equation and solves the resulting quadratic, or equivalently projects the circle center onto the line and compares distance to the radius.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1)
Average
O(1)
Worst
O(1)
Space
O(1)
||p0 + t*d - c||^2 = r^2Solves for line parameters where the line reaches the circle radius.
Show substituting a line into a circle equation and solving the resulting quadratic on a small circle and line intersection example.
Clarify whether the input is an infinite line, ray, or segment before using the intersection result.
What each reference supports for this entry.
Computational geometry textbook support for Circle-Line Intersection's geometric model, data structures, and robustness concerns.
Open sourceGeometric collision reference for Circle-Line Intersection's primitive tests, bounding volumes, and numerical edge cases.
Good next jumps from the relationship graph, ranked for useful discovery.
Geometry · Foundation
Both use geometric intersection ideas for related circle and line intersection problems.
Compare with thisBoth use geometric intersection ideas for related circle and line intersection problems.
Both use geometric intersection ideas for related circle and line intersection problems.
Both use geometric intersection ideas for related circle and line intersection problems.