0

I have 3 points, that will define an arc.
I would like to convert the Arc to Polyline.

How can I implement this is c#?

Thanks advanced

1 Answers1

2

Find circle center and radius (if unknown yet), determine start and end (or sweep) angles (with atan2) and make series of segments betweeen N+1 points (where N is number of segments)

cx + r * cos(startangle + i / N * sweepangle)
cy + r * sin(startangle + i / N * sweepangle)
MBo
  • 77,366
  • 5
  • 53
  • 86