Function nannou_core::geom::centroid [−][src]
pub fn centroid<I>(vertices: I) -> Option<I::Item> where
I: IntoIterator,
I::Item: Average,
Expand description
The centroid
(average position) of all vertices in the given iterator.
Returns None
if the given iterator contains no vertices.