static long ptToLong(Pt p) { ret p == null ? -1: intPairToLong(p.x, p.y); } static long ptToLong(int x, int y) { ret intPairToLong(x, y); }