// points are oriented clockwise, starting at top static L pointsAroundCircle(Pt center, int n, double radius) { L l = emptyList(n); for i to n: { double angle = doubleRatio(i, n); l.set(i, pt( iround(center.x + sin(angle)*radius), iround(center.y - cos(angle)*radius))); } ret l; }