area_centroid

Function area_centroid 

Source
pub fn area_centroid(poly: &[P2], area: f64) -> P2
Expand description

Area centroid of a ring whose signed area is area (non-zero): the (p + q) * cross moment sum over six times the area. Non-finite when the area is zero; the caller screens that.