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