Advertisement

How do I calculate the position on a circle based on a progress value?

Started by January 14, 2020 10:49 PM
10 comments, last by alvaro 4 years, 7 months ago

By the way, whenever you have two real numbers that are the cosine and the sine of a number, you can think of them as a single complex number, z = cos(a)+i*sin(a) == exp(i*a) == polar(1,a). You can then recover the angle by computing a = atan2(imag(z),real(z)) == real(-i*log(z)) == arg(z).

This topic is closed to new replies.

Advertisement