Is there a tool where I can draw some lines and it outputs me a two dimensional equation somehow? ![]()
You can do it pretty straight forward with a polynomial least squares regression. One of the interesting properties of polynomial she is they can be made to fit any curve exactly over a defined domain. Googling āonline polynomial generator from curveā brings up some interesting results.
If you want a curve over the full domain youāll have to do some calculus yourself. Itās basically an act of sensible guessing at equations until you find one that fits. (There probably is a tool for this somewhere, computers are getting darn good at duplicating human intuition these days).
If the intent is to use the equation in Unity, you can just cheat and use an animation curve. An animation curve allows you to go straight from a curve to an evaluation without caring about equations.
Interesting!
I will check on it, thanks a lot ![]()