[−][src]Function graphics::math::centroid
pub fn centroid<T>(polygon: Polygon<'_, T>) -> Vec2d<T> where
T: Float,
Computes centroid of a simple polygon.
A simple polygon is one that does not intersect itself.
pub fn centroid<T>(polygon: Polygon<'_, T>) -> Vec2d<T> where
T: Float,
Computes centroid of a simple polygon.
A simple polygon is one that does not intersect itself.