1

I want to draw a dashed circle, with a diameter D, and X dots composing the circle, like on this image: dashed circle

How can I define the exact space I should have between the different dots, to avoid the misalignment you can see on the right of the circle? I think that an equation involving D, X, and Pi should work, but I do not find the solution...

Many thanks!

Jeremy
  • 13
  • 2
    What do you mean by "space between dots"? Their distance? The angle they form with the center? Something else? – Intelligenti pauca May 30 '16 at 17:10
  • 1
    @Jeremy You need to give more details about how you are currently trying to determine the space, or how you are drawing the misaligned version. – Erick Wong May 30 '16 at 17:13

2 Answers2

0

If you want $X$ dots the angle between two successive dots is $\alpha=2\pi/X$ and the distance between them, measured as an arc on the circle, is $D \alpha/2$.

All this come form the fact that $c=2 \pi r$.

Emilio Novati
  • 62,675
0

You want the dots to be at the ends of radii (length $R=D/2$) at angles $360/X$ degrees. The coordinates will be $$ \left(R\cos\left(j \frac{360}{X}\right), R\sin\left(j \frac{360}{X}\right)\right) $$ for $j = 0, 1, \ldots , X-1$.

Ethan Bolker
  • 95,224
  • 7
  • 108
  • 199