[−][src]Function nannou::ui::widget::primitive::shape::polygon::triangles
pub fn triangles<I>(
points: I
) -> Option<Triangles<<I as IntoIterator>::IntoIter>> where
I: IntoIterator<Item = [f64; 2]>,
Triangulate the polygon given as a list of Point
s describing its sides.
Returns None
if the given iterator yields less than two points.