Skip to main content

in_path

Function in_path 

Source
pub fn in_path(p: Vec2, pts: &[Vec2], rule: FillRule) -> bool
Expand description

Whether p is inside the flattened contours pts (as flatten lays them out) by rule. A point on an edge counts as inside on one side and outside on the other, so of two wedges sharing an edge exactly one takes it.