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.
new cubicInterpolation(tension, x)
determines how sharply the curve bends at the given points.
Location of the point to interpolate, relative to p1