UNPKG

@thi.ng/geom-splines

Version:

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

6 lines 554 B
import type { Fn2, Fn3 } from "@thi.ng/api"; import { type SamplingOpts } from "@thi.ng/geom-resample/api"; import type { ReadonlyVec, Vec } from "@thi.ng/vectors"; export declare const __sample: (sample: Fn3<Vec[], ReadonlyVec[], number, void>) => (pts: ReadonlyVec[], opts?: number | Partial<SamplingOpts>) => Vec[]; export declare const __sampleArray: (fn: Fn2<ReadonlyVec[], Partial<SamplingOpts>, Vec[]>) => (segments: ReadonlyVec[][], closed: boolean | undefined, opts: number | Partial<SamplingOpts>) => any[]; //# sourceMappingURL=sample.d.ts.map