Function nannou::prelude::geom::tri::from_vertices[][src]

pub fn from_vertices<I>(vertices: I) -> Option<Tri<<I as IntoIterator>::Item>> where
    I: IntoIterator
Expand description

Create a Tri from the next three vertices yielded by the given vertices iterator.

Returns None if there were not at least 3 vertices in the given iterator.