I'm a programmer who could use some help reversing an easing method:
public static float easeInExpo(float start, float end, float value){ end -= start; return end * Mathf.Pow(2, 10 * (value / 1 - 1)) + start; }
The method takes a start and end variable and a value. The value is then eased based on an exponential function.
$\text{value} = \text{dist} \times (10((x/1)-1))^2 + \text{start}$
I am trying to reverse it so that the original value is produced with the input of the eased value.
What I have so far is:
$x = \left.\sqrt{\frac{\text{value}+\text{start}}{\text{dist}}}\right/10+1$
This doesn't seem to work. How would you reverse this method?
Edit: It seems that I got it all wrong. What must be solved is $\text{value} = \text{dist}(2^{10((x/1)-1)}) + \text{start}$