Skip to main content

area_with

Function area_with 

Source
pub fn area_with<G, S>(g: &G, s: S) -> S::Out
where G: Geometry, S: AreaStrategy<G>,
Expand description

Area of a polygon using an explicitly supplied strategy.

Mirrors the area(g, strategy) overload at boost/geometry/algorithms/area.hpp. Taking the strategy by value matches the by-value call shape of crate::distance_with; concrete strategies are zero-sized or small Copy configuration objects, so this monomorphises into nothing.