def arc.prepare
import gralha-svg-render@0.1.0.1/svg.bend as Svgimport Base
393def arc.prepare(+p: Path, +q: Point, cmd: U32, rx: F32, ry: F32, +phi: F32,
394 large: F32, sweep: F32, delta: Point) -> Path:
395 Point{x, y} = delta
396 +dx = x
397 +dy = y
398 arc.radii(p, q, cmd, rx, ry, phi, (F32.cos(phi) * dx + F32.sin(phi) * dy : F32),
399 (0.0 - F32.sin(phi) * dx + F32.cos(phi) * dy : F32), large, sweep)