Skip to main content

ring_perimeter

Function ring_perimeter 

Source
pub fn ring_perimeter<R>(
    r: &R,
) -> <DefaultPerimeterStrategy<R> as LengthStrategy<R>>::Out
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.