Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to draw lines from the center of a circle to points (x, y) in the circumference.

To calculate this the angle is used. I need to render points in between two angles. E.g. Angle 0 to angle 1 I would like to render lines from the center of the circle to 5 different points along the circumference between angle 0 and 1. There might be any number of points in between these two angles.

How can I calculate these 5 points? I would need to calculate the (x, y) using angle i and the (x, y) using angle i+1. and then get the arc between these two points.

How is this done and how would I then get the individual points within this arc so that I can incrementally draw lines from the center to these individual points?

share|cite|improve this question
up vote 2 down vote accepted

For circles around $(0,0)$ with radius $r$, the point $(x,y)$ on the circumference at angle $\varphi$ is $$ (x,y) = (r\cos\varphi, r\sin\varphi) \text{.} $$

share|cite|improve this answer
Thanks. For some reason I thought the angle could only be of Integer type. – Helium3 Apr 29 '13 at 12:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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