Function nannou::geom::polygon::contains

source ·
pub fn contains<I>(
    points: I,
    point: &<I as IntoIterator>::Item
) -> Option<Tri<<I as IntoIterator>::Item>>
Expand description

Returns Some with the touched triangle if the given Point is over the polygon described by the given series of points.

This uses the triangles function internally.