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