def cubic
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
209def cubic(+p: Point, +a: Point, +b: Point, +q: Point, +edges: List<&2, Edge>, +tol: F32) -> List<&2, Edge>:
210 +n = cubic.count(p, a, b, q, tol)
211 cubic.go(U32.to_nat(n), 1.0, (1.0 / U32.to_f32(n) : F32), p, a, b, q, p, edges)