WIP - Proportional Distance "interpolating" two height curves

This is my go-to task when I need a coding challenge and I have not yet solved all the issues, but i am getting closer and closer. So here is a small tease on the result.

The yellow curve is the result of interpolating the two black curves, the red points are the sampling point results, and the gray curves are just new sub-interpolations, and sub-interpolations of the sub-interpolations… :wink:

So if anybody has any literature on good curve interpolations then I would be happy to look into it!