point_in_polyline

Function point_in_polyline 

Source
pub fn point_in_polyline<P1: GetXY, P2: GetXY>(
    point: &P1,
    contour: &[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