1
$\begingroup$

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}$

  • 0
    Assume dist is given, which is equal to the end variable minus the start variable. Edit: It seems that I got it all wrong. What must be solved is value = dist(2^(10((x/1)-1))) + start2012-07-07
  • 0
    Why do you have $(x/1)$ instead of $x$?2012-07-07

2 Answers 2