fn approx_eq(pair1: &[Pt2D], pair2: &(Pt2D, Pt2D)) -> bool