Class: cubicInterpolation

cubicInterpolation(tension, x)

Interpolates the value of a point that is located between four known equidistant points with given values by constructing a polynomial of degree three that goes through all points. Computes a cardinal or Catmull-Rom spline.

Constructor

new cubicInterpolation(tension, x)

Parameters:
Name Type Description
tension number determines how sharply the curve bends at the given points.
x number Location of the point to interpolate, relative to p1
Source: