Kevin Neilson wrote:
> Super! Mann zieht die Stuetzpunkte mit der Maus! That is a nice applet, but it's parametric,
> so it seems a little different than my application. I have a function of only one variable.
The class Spline.java is a spline of only one variable. Test.java uses
it twice, for the x and y coordinate of the points.
Your example for x=-1,0,1,2 could be implemented by creating a Spline
object and initializing it with the y-samples. Then call fn, with 0, 1,
2, 3 and use t for interpolating between two points.