import { Modifier } from './Modifier'; /** * * @category Modifiers.Settings * @export * @interface ISmoothSettings */ export interface ISmoothSettings { tension?: number; level?: number; closed?: boolean; } /** * Smooth the corners * * @category Modifiers * @class Smooth * @extends {Modifier} */ declare class Smooth extends Modifier { private tension; private level; private closed; constructor(args?: ISmoothSettings); apply(buffer: Float32Array, bClosed: boolean): Float32Array; /** * Chaikin smooth * * the tension factor defines a scale between corner cutting distance in segment half length, * i.e. between 0.05 and 0.45. The opposite corner will be cut by the inverse * (i.e. 1-cutting distance) to keep symmetry. * with a tension value of 0.5 this amounts to 0.25 = 1/4 and 0.75 = 3/4, * the original Chaikin values * * @link https://www.codeproject.com/Articles/1093960/D-Polyline-Vertex-Smoothing * @param buffer */ static smooth(buffer: Float32Array, tension?: number, bClosed?: boolean): Float32Array; } export { Smooth }; //# sourceMappingURL=Smooth.d.ts.map