Function parry3d::utils::point_in_convex_poly2d

source ·
pub fn point_in_convex_poly2d(pt: &Point2<Real>, poly: &[Point2<Real>]) -> 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.