Jagadeeesh
New member
- Joined
- Jul 1, 2021
- Messages
- 1
- Programming Experience
- Beginner
Does anyone know how to draw polygon using number of sides and radius in c# winform
But who listens to that stuff in maths class because we all know we're never going to use it, right?Yes. One way is for you to apply what you learned in geometry to determine how to bisect a circle into a given number of points which will give you an angle. You then apply what you learned in trigonometry to compute the position of a point on a unit circle given an angle. Scale that by the target radius. Store the point position. Increment the angle. Compute the next point. Repeat until you have gone full circle. Now use GDI+ to draw lines between those points.