[Math] x Points around a circle

circlestrigonometry

I would like to calculate x number of points around a circle using the circle's radius/diameter.

For example, if I wanted 24 equidistant points around a circle with radius 30, how could I go about that?

The circle's origin is (0, 0), radius 30 and I need to calculate 24 (X, Y) equidistant points around it.

Example with 17 points: http://i.imgur.com/Jibwr.png

Best Answer

If you start from the right wing of the $x$ axis, your points of the regular $n$-gon are $$P_k=(r\cos\left(\frac{k\cdot 2\pi}{n}\right), r\sin\left(\frac{k\cdot 2\pi}{n}\right))$$ where $k=0,..,n-1$.

If the first angle, measured from the right wing of $x$ axis, counterclockwise, is not $0$ but some $\alpha_0$, then $$P_k=(r\cos\left(\frac{k\cdot 2\pi}{n}+\alpha_0\right), r\sin\left(\frac{k\cdot 2\pi}{n}+\alpha_0\right))$$