curve.d.ts 1.7 KB

123456789101112131415
  1. import { VectorArray } from './vector';
  2. export declare function cubicAt(p0: number, p1: number, p2: number, p3: number, t: number): number;
  3. export declare function cubicDerivativeAt(p0: number, p1: number, p2: number, p3: number, t: number): number;
  4. export declare function cubicRootAt(p0: number, p1: number, p2: number, p3: number, val: number, roots: number[]): number;
  5. export declare function cubicExtrema(p0: number, p1: number, p2: number, p3: number, extrema: number[]): number;
  6. export declare function cubicSubdivide(p0: number, p1: number, p2: number, p3: number, t: number, out: number[]): void;
  7. export declare function cubicProjectPoint(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, x: number, y: number, out: VectorArray): number;
  8. export declare function cubicLength(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, iteration: number): number;
  9. export declare function quadraticAt(p0: number, p1: number, p2: number, t: number): number;
  10. export declare function quadraticDerivativeAt(p0: number, p1: number, p2: number, t: number): number;
  11. export declare function quadraticRootAt(p0: number, p1: number, p2: number, val: number, roots: number[]): number;
  12. export declare function quadraticExtremum(p0: number, p1: number, p2: number): number;
  13. export declare function quadraticSubdivide(p0: number, p1: number, p2: number, t: number, out: number[]): void;
  14. export declare function quadraticProjectPoint(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x: number, y: number, out: VectorArray): number;
  15. export declare function quadraticLength(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, iteration: number): number;