polyline_in_polyline

Function polyline_in_polyline 

Source
pub fn polyline_in_polyline<P: GetXY>(hole: &[P], outer: &[P]) -> bool
Expand description

Check if a polyline/hole is inside another polyline/outer ring

§Parameters

  • hole: the hole to test if inside the outer
  • outer: the outer to test against

§Returns

true if the hole is inside the outer