pub fn winding_number(point: Point2, polygon: &[Point2]) -> i32Expand description
Compute the winding number of a point with respect to a polygon.
The polygon is given as a slice of vertices forming a closed loop (the last vertex is implicitly connected to the first). Returns the winding number: non-zero means the point is inside.