static DoublePt scaleDoublePt(DoublePt p, double f) { ret new DoublePt(p.x*f, p.y*f); } static DoublePt scaleDoublePt(double f, DoublePt p) { ret scaleDoublePt(p, f); }