fn simplex_has_point(simplex_points: &[Point; 4], new_pt: &Point) -> bool {
    const PRECISION_SQ: f32 = 1e-6 * 1e-6;
    for pt in simplex_points {
        let delta = pt.xyz - new_pt.xyz;
        if delta.length_squared() < PRECISION_SQ {
            return true;
        }
    }
    false
}
/// Checks whether the new point already exists in the simplex
Checks whether the new point already exists in the simplex
Checks whether the new point already exists in the simplex
fn simplex_has_point(simplex_points: &[Point; 4], new_pt: &Point) -> bool {
    const PRECISION_SQ: f32 = 1e-6 * 1e-6;
    for pt in simplex_points {
        let delta = pt.xyz - new_pt.xyz;
        if delta.length_squared() < PRECISION_SQ {
            return true;
        }
    }
    false
}
fn simplex_has_point ( simplex_points : & [ Point ; 4 ] , new_pt : & Point ) -> bool { const PRECISION_SQ : f32 = 1e-6 * 1e-6 ; for pt in simplex_points { let delta = pt . xyz - new_pt . xyz ; if delta . length_squared ( ) < PRECISION_SQ { return true ; } } false }
Checks whether the new point already exists in the simplex
Checks whether the new point already exists in the simplex
simplex_points
&[Point; 4]
new_pt
&Point
simplex_points
&[Point; 4]
new_pt
&Point