(pts: &[(f64, f64)])
| 265 | } |
| 266 | |
| 267 | fn format_svg_points(pts: &[(f64, f64)]) -> String { |
| 268 | pts.iter() |
| 269 | .map(|(x, y)| format!("{},{}", *x as i32, *y as i32)) |
| 270 | .collect::<Vec<_>>() |
| 271 | .join(" ") |
| 272 | } |
| 273 | |
| 274 | /// Ramer-Douglas-Peucker polyline simplification. |
| 275 | fn rdp_simplify(points: &[(f64, f64)], epsilon: f64) -> Vec<(f64, f64)> { |
no outgoing calls
no test coverage detected