Suppose I need the coordinates of 360 points on a circle, one for each degree of rotation
There is an assumption:
int x = (int)Math.Cos(2 * Math.PI * i / n) * R + x[0]; int y = (int)Math.Sin(2 * Math.PI * i / n) * R + y[0]; Where i is the point number, n is the number of points = 360, R is the radius, x [0] and y [0] are the coordinates of the center of the circle
Only in this way only these four points are calculated:
How to go through all 360 points?

