pub fn area_dyn<S, Cs>(g: &DynGeometry<S, Cs>) -> Swhere
S: CoordinateScalar,
Cs: CoordinateSystem,
Cs::Family: SameAs<CartesianFamily> + DefaultArea<Cs::Family>,
DefaultAreaStrategy<Polygon<Point<S, 2, Cs>>>: AreaStrategy<Polygon<Point<S, 2, Cs>>, Out = S> + Default,
ShoelaceMultiPolygonArea: AreaStrategy<MultiPolygon<Polygon<Point<S, 2, Cs>>>, Out = S>,Expand description
Runtime-dispatched signed area.
Returns the signed area for areal kinds (Polygon, MultiPolygon),
the recursive sum of member areas for a GeometryCollection, and 0
for every non-areal leaf kind — matching Boost’s contract
(area.hpp, incl. the geometry_collection_tag specialisation at
:273-285).