UNPKG

@thewtex/vtk.js-esm

Version:

Visualization Toolkit for the Web

59 lines (49 loc) 1.71 kB
import { vtkObject } from '@kitware/vtk.js/interfaces' ; interface ISpline1DInitialValues {} export interface vtkSpline1D extends vtkObject { /** * * @param {Number} size * @param {Float32Array} work * @param {Number[]} x * @param {Number[]} y */ computeCloseCoefficients(size: number, work: Float32Array, x: number[], y: number[]): void; /** * * @param {Number} size * @param {Float32Array} work * @param {Number[]} x * @param {Number[]} y */ computeOpenCoefficients(size: number, work: Float32Array, x: number[], y: number[]): void; /** * * @param {Number} intervalIndex * @param {Number} t */ getValue(intervalIndex: number, t: number): void; } /** * Method used to decorate a given object (publicAPI+model) with vtkSpline1D characteristics. * * @param publicAPI object on which methods will be bounds (public) * @param model object on which data structure will be bounds (protected) * @param {ISpline1DInitialValues} [initialValues] (default: {}) */ export function extend(publicAPI: object, model: object, initialValues?: ISpline1DInitialValues): void; /** * Method used to create a new instance of vtkSpline1D. * @param {ISpline1DInitialValues} [initialValues] for pre-setting some of its content */ export function newInstance(initialValues?: ISpline1DInitialValues): vtkSpline1D; /** * vtkSpline1D provides methods for creating a 1D cubic spline object from given * parameters, and allows for the calculation of the spline value and derivative * at any given point inside the spline intervals. */ export declare const vtkSpline1D: { newInstance: typeof newInstance, extend: typeof extend }; export default vtkSpline1D;