static L allPointsInRect(int w, int h) { new L l; for y to h: for x to w: l.add(pt(x, y)); ret l; }