Skip to main content

ray_crossings

Function ray_crossings 

Source
fn ray_crossings(point: Vec2, poly: &[Vec2]) -> usize
Expand description

Parity / even-odd point-in-polygon. Returns the number of times a rightward ray from point crosses any edge of the polygon.