Skip to main content
3 of 3
removed silly line break

Calculate winding number

How can one calculate the winding number of a polygon given as a list of vertices in some (counter-clockwise or clockwise) order?

The complexity of the algorithm must be linear time.

Dib
  • 246
  • 2
  • 7