Function nannou_core::geom::centroid
source · pub fn centroid<I>(vertices: I) -> Option<I::Item>
Expand description
The centroid
(average position) of all vertices in the given iterator.
Returns None
if the given iterator contains no vertices.