@mocanvas/mocanvas · function
declare function arcToCubicSegments(center: VecLike, radius: number, startAngle: number, sweep: number, count?: number): CubicSegment[]Approximate a circular arc with count cubic béziers.
sweep is signed: positive sweeps toward increasing angle (clockwise in
screen space where +y points down).
mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.