Skip to main content

in_aim_hull

Function in_aim_hull 

pub fn in_aim_hull(p: Point, apex: Point, target: Rect) -> bool
Expand description

Whether p lies in the convex hull of apex and target: inside the target, or inside a triangle from the apex to one of its edges.