def winding

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

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

534def winding(edges: List<&2, Edge>, +p: Point) -> F32:
535  match edges:
536    case Nil{}: 0.0
537    case Con{h, t}: (edge.cross(h, p) + winding(t, p) : F32)

Uses (6)

Used by (1)