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