point_in_ring_by

Function point_in_ring_by 

Source
pub fn point_in_ring_by(p: P2, n: usize, at: impl Fn(usize) -> P2) -> bool
Expand description

Even-odd ray cast of p against the closed ring at(0..n); false below three vertices. A point on the boundary is decided by the half-open crossing rule (an edge counts when exactly one endpoint is above p.y and p.x is strictly left of the crossing), and a NaN comparison never counts as a crossing.