Index: binaries/data/mods/public/globalscripts/interpolation.js =================================================================== --- binaries/data/mods/public/globalscripts/interpolation.js +++ binaries/data/mods/public/globalscripts/interpolation.js @@ -1,10 +1,9 @@ /** - * Catmull-Rom spline. * 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 spline (also known as canonical spline) that is a Catmull-Rom spline if the tension is zero. * - * @param {Number} tension - determines the geometry of the curve, between 0 (tight curve) and 1 (smooth curve). - * Depending on the tension, the spline is called uniform (0), centripetal (0.5) or chordal (1). + * @param {Number} tension - the tension is a number between 0 and 1 and determines how sharply the curve bends at the given points. * @param {Number} x - Location of the point to interpolate, relative to p1 */ function cubicInterpolation(tension, x, p0, p1, p2, p3)