WindingCount

WindingCount[contour,p]

gives the count of the number of times a closed curve winds around a point p.

Details

  • WindingCount is also known as winding number.
  • WindingCount is typically used to define a polygon from self-intersecting closed curves.
  • A counterclockwise revolution has a value 1 and a clockwise revolution has a value -1. For several contours, the number of revolutions around p is the sum of the number of revolutions for each contour.
  • The closed curve contour is typically a collection of line segments Line[{{p1,p2},,{pn-1,pn},{pn,p1}}], and must lie in a plane.
  • For a polygon poly, WindingCount[poly,p] gives the number of times the polygon boundary curves wind around the point p.

Examples

open all close all

Basic Examples  (1)

Count how many times a closed curve winds around a point:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Scope  (2)

Applications  (2)

Properties & Relations  (1)

Introduced in 2019
(12.0)