Документация Engee

Winding

Страница в процессе перевода.

The winding number is intimately connected to the sideof function, which is used more often in applications.

winding(points, object)

Generalized winding number of points with respect to the geometric object.

References

points = [Point(0, 0), Point(0.2, 0.2), Point(2, 1)]
polygon = Triangle((0, 0), (1, 0), (0, 1))

winding(points, boundary(polygon))
3-element Vector{Float64}:
 0.25
 1.0
 0.0