Hello everyone, I encountered the following problem.
I am writing a program to automatically construct graphs on canvas (laboratory). I can not understand how to draw it.
We have a canvas of a given size, there are n points.
It is necessary to achieve the following: at an equal distance from the center of the canvas, draw n circles (canvas.DrawCircle (x, y, 10);), which will be at an equal distance from each other. n is constantly changing.
I broke my head, but I can’t think of an algorithm.
I believe that it is necessary to dance from dividing the circle into sectors, calculating the angle, and then further through the polar coordinates, but I don’t understand how to find the angle
