Skip to main content

length_dyn

Function length_dyn 

Source
pub fn length_dyn<S, Cs>(g: &DynGeometry<S, Cs>) -> S
Expand description

Runtime-dispatched length.

Returns the polyline length for linear kinds (LineString, MultiLineString), the recursive sum of member lengths for a GeometryCollection, and 0 for every non-linear leaf kind — matching Boost’s contract (length.hpp:75-80, plus the geometry_collection_tag specialisation at :251-265).