Skip to main content

point_in_polygon

Function point_in_polygon 

Source
pub fn point_in_polygon(point: Point2, polygon: &[Point2]) -> bool
Expand description

Test whether a point lies inside a polygon using the winding number rule.

Returns true if the winding number is non-zero.