pub fn point_in_convex_poly2d(pt: &Point2<f32>, poly: &[Point2<f32>]) -> bool
Expand description
Tests if the given point is inside a convex polygon with arbitrary orientation.
The polygon is assumed to be closed, i.e., first and last point of the polygon are implicitly assumed to be connected by an edge.