Skip to main content

circle_circle

Function circle_circle 

Source
pub fn circle_circle(
    c1: [f64; 2],
    r1: f64,
    c2: [f64; 2],
    r2: f64,
) -> Option<[[f64; 2]; 2]>
Expand description

The (up to two) intersection points of two circles, (centre, radius). Coincident circles give None; tangent circles give one point (repeated).