pub fn inside_boundary(rings: &[Vec<Point2>], p: Point2) -> boolExpand description
Whether a point in parameter space lies inside the region rings bound.
Even-odd winding: inside the outer ring and outside every hole. The rings come from wires whose direction already encodes outer from inner, but counting crossings does not depend on that being right, which makes it robust to a wire that was built the wrong way round.
Says nothing about a point on a ring: the crossing count of a boundary point is whichever side rounding puts it. A caller that cares has to measure its distance to the boundary and decide, which is what classification does.
Decided with exact predicates. See inside_boundary_with.