static Pt ptMul(double d, Pt p) { ret new Pt(iround(d*p.x), iround(d*p.y)); }