Commit c4c377c4 authored by ronan's avatar ronan
Browse files

Test new Exp inter

parent ec5e120e
Pipeline #2269 passed with stage
in 1 minute
......@@ -35,10 +35,15 @@ public class Interpolation
{
// y = a * exp(bkx)
float a = start;
/*float a = start;
float b = (float) (Math.log(end/a) / (k * duration));
return (float) (a * Math.exp(b * k * time));
return (float) (a * Math.exp(b * k * time));*/
float a = (float) ((Math.exp(end) - Math.exp(start))/(Math.exp(k * duration) - Math.exp(0)));
float b = (float) Math.exp(start);
return (float) (a * Math.exp(k * time/duration) + b) ;
}
/**
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment