@mocanvas/editor · class
declare class Arc2d extends Geometry2dA circular arc, given the way SVG gives one: a centre, two endpoints, and the two flags that pick which of the four possible arcs between them is meant.
Methods · 8
constructor(config: Flags & {getLength(): numbergetPointAt(t: number): VecThe point at t along the arc, t in [0, 1].
getVertices(): Vec[]interpolateAlongEdge(t: number): VecnearestPoint(point: VecLike): VectoPathWords(): number[]uninterpolateAlongEdge(point: VecLike): numberProperties · 9
readonly _center: VecThe centre of the circle the arc is cut from. Named apart from the
inherited center, which is the centre of the arc's bounding box and is a
different point entirely.
readonly angleEnd: numberThe angle from the centre to end.
readonly angleStart: numberThe angle from the centre to start.
readonly end: Vecreadonly largeArcFlag: numberreadonly measure: numberThe signed sweep of the arc, in radians. Negative runs anti-clockwise.
readonly radius: numberreadonly start: Vecreadonly sweepFlag: numbermocanvas 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.