Skip to main content

area_dyn

Function area_dyn 

Source
pub fn area_dyn<S, Cs>(g: &DynGeometry<S, Cs>) -> 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).