static double ptDistance(Pt a, Pt b) { ret pointDistance(a, b); } ifclass DoublePt static double ptDistance(DoublePt a, DoublePt b) { ret pointDistance(a, b); } static double ptDistance(DoublePt a, Pt b) { ret pointDistance(a.x, a.y, b.x, b.y); } endif