fn sum_within_range(stretches: &Vec<(f64, f64)>, min: f64, max: f64) -> f64
maplibre/maplibre-native#4add9ea original name: sumWithinRange