def points.clean

gralha-svg-render@0.1.0.1 · svg.bend:1209

import gralha-svg-render@0.1.0.1/svg.bend as Svg
import Base

1209def points.clean(xs: List<&2, Point>, +previous: Point) -> List<&2, Point>:
1210  match xs:
1211    case Nil{}: Nil{}
1212    case Con{h, t}:
1213      +hh = h
1214      points.clean.go(F32.is_lt(point.distance(hh, previous), 0.0000001), hh, t, previous)

Uses (5)

Used by (1)