Function conrod::widget::primitive::shape::polygon::triangles [] [src]

pub fn triangles<I>(points: I) -> Option<Triangles<I::IntoIter>> where
    I: IntoIterator<Item = Point>, 

Triangulate the polygon given as a list of Points describing its sides.

Returns None if the given iterator yields less than two points.