WLJS LogoWLJS Notebook

CirclePoints

CirclePoints[n] gives the positions of n points equally spaced around the unit circle.

CirclePoints[r, n] gives the positions of n points equally spaced around a circle of radius r.

CirclePoints[{r, θ1}, n] starts at angle θ1 with respect to the x axis.

Examples

Points on a unit circle:

CirclePoints[6]
(* {{1, 0}, {1/2, Sqrt[3]/2}, ...} *)

Visualize circle points:

Graphics[Point[CirclePoints[12]]]

Please visit the official Wolfram Language Reference for more details.

On this page