static L circlePoints(int x, int y, int radius) { new L points; int steps = iround(radius*2*pi()); for i to steps: { double phi = i*2*pi()/steps; points.add(new Pt(iround(x+radius*sin(phi)), iround(y+radius*cos(phi))); } ret points; }