I am currently coding up a project where interpolations must be performed such that C2 continuity be preserved along the length of the whole set. The end result ought to look like a line (which will curve around in any direction) embedded in higher dimensional space. In other words: I have a set of experimentally determined points, P(w,x,y,z), which I'd like to connect via this C2 continuous line.
How do I apply a natural cubic spline to this line? The boundary conditions can be determined by using a C1 approach (Centripetal Catmull Rom, for instance). Is there a source I can consult for this? All the websources I've found restrict themselves to the useless f(x) case, and I have no idea how to set up the tridiagonal matrix for the n-dimensional case.
Thanks you!