Skip to main content

line_arc_intersection

Function line_arc_intersection 

Source
pub fn line_arc_intersection(
    line_start: Coords2d,
    line_end: Coords2d,
    arc_center: Coords2d,
    arc_start: Coords2d,
    arc_end: Coords2d,
    epsilon: f64,
) -> Option<Coords2d>
Expand description

Helper to calculate intersection between a line segment and an arc

Returns the intersection point if found, None otherwise.