point_in_polygon

Function point_in_polygon 

Source
pub fn point_in_polygon<P1: GetXY, P2: GetXY>(
    point: &P1,
    polygon: &[Vec<P2>],
) -> InsideResult
Expand description

A Robust point in polygon test

§Parameters

  • point: the point
  • polygon: the polygon

§Returns

true if the point is in the polygon, 0 if on the boundary, false otherwise