UNPKG

@thi.ng/geom-splines

Version:

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

12 lines 425 B
import type { FnU2 } from "@thi.ng/api"; import type { Vec } from "@thi.ng/vectors"; /** * Converts line segment `a` -> `b` into a cubic curve, which when * sampled yields uniformly spaced points. The inner control points are * located at 1/3 and 2/3 respectively. * * @param a - line endpoint * @param b - line endpoint */ export declare const cubicFromLine: FnU2<Vec, Vec[]>; //# sourceMappingURL=cubic-line.d.ts.map