I'm trying to draw a circle in C++ using the following formulas to determine each individual point of the circle.

x = cos(theta) * r

y = sin(theta) * r

This works fine, however I want to be able to draw the circle in a given time limit.

For example, I want a circle to be drawn in 6 seconds. So 60 degrees of the circle is drawn after 1 second, 120 degrees after 2 seconds, and we continue until the circle is completely drawn at 6 seconds.

How would I go about calculating the angles of the circle using the two formulas above?

## Bookmarks