Optional
circle: Circlefor (const pt of circleVogelSpiral()) {
// Generate points on a unit circle, with 95% density
}
const circle = { radius: 100, x: 100, y: 100 };
const opts = {
maxPoints: 50,
density: 0.99
};
for (const pt of circleVogelSpiral(circle, opts)) {
// Do something with point...
}
const ptsArray = [...circleVogelSpiral(circle, opts)];
Generates points on a Vogel spiral - a sunflower-like arrangement of points.