def arc.point

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

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

338# Endpoint-to-center conversion from SVG's elliptical arc implementation notes.
339def arc.point(+center: Point, +rx: F32, +ry: F32, +phi: F32, +t: F32) -> Point:
340  point.add(center, Point{(rx * F32.cos(phi) * F32.cos(t) - ry * F32.sin(phi) * F32.sin(t) : F32),
341    (rx * F32.sin(phi) * F32.cos(t) + ry * F32.cos(phi) * F32.sin(t) : F32)})

Uses (8)

Used by (1)