I would like to be able to do something like this in c++.
How can I go about creating a nice curved line like this through a list of points?
Can anyone please point me in the direction of the relevant maths?
Edit 1:
Here is another example of what I would like from the output.
I need to be able to calculate Y for any given X...
Edit 2:
Please don't just post existing APIs, chances are they will be useless on an MCU. I would prefer reading the maths...