0
$\begingroup$

Hi i'm struggling with what i think may be simple maths. I need to place circles of a small size around the edge of larger circle.. is there an algorithm to calculate the angle for each small circle from the x-axis, counter clockwise? then using this angle i can find the Cartesian coordinates (x,y) of the enter of each circle.

$\endgroup$

closed as off-topic by Evil, David Richerby, vonbrand, Discrete lizard Aug 12 at 7:13

  • This question does not appear to be about computer science within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    $\begingroup$ I'm voting to close this question as off-topic because it is about elementary trigonometry, not computer science. $\endgroup$ – David Richerby Aug 9 at 14:55
0
$\begingroup$

Circles centers form isosceles triangle with base of length $2r$ and arms of length $R+r$, so $ \tan (\frac{\beta}{2}) = \frac { r}{ r+R} $ hance $\beta = 2\arctan(\frac{r}{r+R}) $

$\endgroup$
  • $\begingroup$ Hi thanks for the response. You gave me an idea to find the answer, which was to use the base of the isosceles as you said which would be 2r and then the arm lengths are equal to R. I then split it down the middle to get a right angled triangle. So have the opposite(r) and hypotenuse(R), so it was a matter of using 2 * sin-1(o/h). I think you found the adjacent and used the toa of the sohcahtoa :). Thanks so much $\endgroup$ – Chris Rollings Jul 27 at 14:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.