import { Box } from './Box'; /** * @private */ export declare const utils: { adaptive: boolean; maxLength: number; minSegments: number; maxSegments: number; epsilon: number; _segmentsCount(length: number, defaultSegments?: number): number; }; export declare function findIndexFromLUT(lut: number[], length: number): number; export declare function boxFromLUT(lut: number[]): Box; /** * Utilities for quadratic curves. * @private */ export declare const quadratic: { /** * Calculate length of quadratic curve * @see {@link http://www.malczak.linuxpl.com/blog/quadratic-bezier-curve-length/} * for the detailed explanation of math behind this. * @private * @param fromX - x-coordinate of curve start point * @param fromY - y-coordinate of curve start point * @param cpX - x-coordinate of curve control point * @param cpY - y-coordinate of curve control point * @param toX - x-coordinate of curve end point * @param toY - y-coordinate of curve end point * @returns - Length of quadratic curve */ curveLength(fromX: number, fromY: number, cpX: number, cpY: number, toX: number, toY: number): number; /** * Calculate the points for a quadratic bezier curve and then draws it. * Based on: https://stackoverflow.com/questions/785097/how-do-i-implement-a-bezier-curve-in-c * @private * @param cpX - Control point x * @param cpY - Control point y * @param toX - Destination point x * @param toY - Destination point y */ generateLUT(fromX: number, fromY: number, cpX: number, cpY: number, toX: number, toY: number): number[]; }; /** * Utilities for bezier curves * @private */ export declare const bezier: { /** * Calculate length of bezier curve. * Analytical solution is impossible, since it involves an integral that does not integrate in general. * Therefore numerical solution is used. * @private * @param fromX - Starting point x * @param fromY - Starting point y * @param cpX - Control point x * @param cpY - Control point y * @param cpX2 - Second Control point x * @param cpY2 - Second Control point y * @param toX - Destination point x * @param toY - Destination point y * @returns - Length of bezier curve */ curveLength(fromX: number, fromY: number, cpX: number, cpY: number, cpX2: number, cpY2: number, toX: number, toY: number): number; /** * Calculate the curve LUT * * @ignore * @param toX - Source point x * @param toY - Source point y * @param cpX - Control point x * @param cpY - Control point y * @param cpX2 - Second Control point x * @param cpY2 - Second Control point y * @param toX - Destination point x * @param toY - Destination point y */ generateLUT(fromX: number, fromY: number, cpX: number, cpY: number, cpX2: number, cpY2: number, toX: number, toY: number): number[]; }; //# sourceMappingURL=curves.d.ts.map