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