pub fn solve_segment_length( x_overlap: Option<Range<f64>>, y_overlap: Option<Range<f64>>, bbox: &Rect, ) -> f64