UNPKG

@thi.ng/geom-splines

Version:

nD cubic & quadratic curve analysis, conversion, interpolation, splitting

16 lines 648 B
import type { ReadonlyVec, Vec } from "@thi.ng/vectors"; /** * Converts elliptic arc into a 1-4 cubic curve segments, depending on arc's * angle range. * * Partially based on: * https://github.com/chromium/chromium/blob/develop/third_party/blink/renderer/core/svg/svg_path_parser.cc#L253 * * @param pos - ellipse center * @param r - ellipse radii * @param axis - rotation angle (radians) * @param start - start angle (radians) * @param end - end angle (radians) */ export declare const cubicFromArc: (pos: ReadonlyVec, r: ReadonlyVec, axis: number, start: number, end: number) => Vec<number>[][]; //# sourceMappingURL=cubic-arc.d.ts.map