pub fn ring_edges(ring: &[[f64; 2]]) -> Vec<([f64; 2], [f64; 2])>
Extract all edges from a polygon ring as segment pairs.