Skip to main content

Class: NumericSpline

components.NumericSpline

Represents a spline that can take numeric values.

Hierarchy#

  • Spline<number>

    ↳ NumericSpline

Constructors#

constructor#

• new NumericSpline(...keys)

Creates a new spline instance, using the specified keys. Note that you have to pass at least one key.

Parameters#

NameType
...keysSplineKey<number>[]

Inherited from#

Spline<number>.constructor

Defined in#

components/spline.ts:26

Methods#

evaluate#

â–¸ evaluate(time): number

Evaluates the spline at the given time.

Parameters#

NameType
timenumber

Returns#

number

Inherited from#

Spline.evaluate

Defined in#

components/spline.ts:48