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