MCPcopy Create free account
hub / github.com/alceal/plotlars / format_svg_points

Function format_svg_points

crates/plotlars-plotters/src/render/mod.rs:267–272  ·  view source on GitHub ↗
(pts: &[(f64, f64)])

Source from the content-addressed store, hash-verified

265}
266
267fn 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.
275fn rdp_simplify(points: &[(f64, f64)], epsilon: f64) -> Vec<(f64, f64)> {

Callers 1

simplify_svg_polylinesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected