pub fn centroid<G>(
g: &G,
) -> <<G::Kind as CentroidStrategyForKind>::S as CentroidStrategy<G>>::Outputwhere
G: Geometry,
G::Kind: CentroidStrategyForKind,
<G::Kind as CentroidStrategyForKind>::S: CentroidStrategy<G>,Expand description
Centroid of g using the per-kind Cartesian strategy.
Mirrors boost::geometry::centroid(g, p) from
boost/geometry/algorithms/centroid.hpp. The strategy is chosen from
the geometry kind via the tag-keyed
[geometry_strategy::CentroidStrategyForKind] picker; for an
explicit strategy (or a future spherical / geographic LA8 strategy)
use centroid_with.