Skip to content

CardinalSpline1D

Introduction

vtkCardinalSpline1D 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.

Methods

computeCloseCoefficients

ArgumentTypeRequiredDescription
sizeNumberYes
workFloat32ArrayYes
xVector3Yes
yVector3Yes

computeOpenCoefficients

ArgumentTypeRequiredDescription
sizeNumberYes
workFloat32ArrayYes
xVector3Yes
yVector3Yes
optionsObjectYes
options.leftConstraintBoundaryConditionYes
options.leftValueNumberYes
options.rightConstraintBoundaryConditionYes
options.rightValueNumberYes

extend

Method used to decorate a given object (publicAPI+model) with vtkCardinalSpline1D characteristics.

ArgumentTypeRequiredDescription
publicAPIYesobject on which methods will be bounds (public)
modelYesobject on which data structure will be bounds (protected)
initialValuesICardinalSpline1DInitialValuesNo(default: {})

getValue

ArgumentTypeRequiredDescription
intervalIndexNumberYes
tNumberYes

newInstance

Method used to create a new instance of vtkCardinalSpline1D.

ArgumentTypeRequiredDescription
initialValuesICardinalSpline1DInitialValuesNofor pre-setting some of its content