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