Function line_circle_hits

Source
pub fn line_circle_hits(
    line: Line,
    circle: Circle,
) -> Result<HitCount, ExactError>
Expand description

Where line meets circle, exactly: missed, tangent, or two hits.

Tangency is decided exactly, so a line that grazes the circle is never reported as two nearly equal hits, or as a miss, by rounding.