pub fn ring_perimeter<R>(
r: &R,
) -> <DefaultPerimeterStrategy<R> as LengthStrategy<R>>::Outwhere
R: Ring,
<<<R as Geometry>::Point as Point>::Cs as CoordinateSystem>::Family: DefaultPerimeter<<<<R as Geometry>::Point as Point>::Cs as CoordinateSystem>::Family>,
DefaultPerimeterStrategy<R>: LengthStrategy<R> + Default,Expand description
Standalone helper to compute the perimeter of a Ring directly,
without wrapping it in a polygon. Mirrors Boost’s
perimeter(ring) overload which dispatches via the
ring_tag arm of algorithms/perimeter.hpp:66-73.