static L lambdaMapLike graphAsPolygon(IF1 formula, int w, int h) { new L points; points.add(DoublePt(0, 0)); for x to w: { double y = formula.get(doubleRatio(x, w))*h; points.add(DoublePt(x, y)); } points.add(DoublePt(w-1, 0)); ret points; }