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