static Point toPoint(Pt p) { ret p == null ? null : new Point(p.x, p.y); }