def outline.sweep
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
1458# The points strictly between the start and end of an arc around c from the
1459# direction `from` sweeping `sweep` radians (signed).
1460def outline.sweep(+c: Point, +r: F32, +from: Point, +sweep: F32, +scale: F32, acc: List<&2, Point>) -> List<&2, Point>:
1461 +n = outline.steps(sweep, r, scale)
1462 +step = (sweep / U32.to_f32(n) : F32)
1463 outline.arc(U32.to_nat((n - 1 : U32)), c, r, (point.angle(from) + step : F32), step, acc)