I'm not a mathematician, but a software developer. So I am much more comfortable reading code than I am math notation.
Could someone help provide some code for the following:
I don't mind which language (but would prefer C# or javascript), and would certainly prefer the usage of built in math functions.
Looking for an implementation of
// x is a value between 0 and 1.
// y is a value between 0 and 1.
float GetY(float x, float curvature)
Any guidance would be much appreciated, Regards, Daniel.