easing.inOutQuad "jumps"

Hello!

I am currently experimenting with the new SDK 2.0 beta - mainly in the simulator.

Here I experienced a “jump” in the results of “easing.inOutQuad”. Try the following:

for x = 0,299,1 do
 local y = easing.inOutQuad(x,299, 0,299);
 print(x..","..y);
end;

and look at x = 149…150 (in the terminal output) There you will notice a jump from 148.5 to 447.5 - which is definitely wrong, as y should remain in the range 0…299 [import]uid: 4331 topic_id: 838 reply_id: 300838[/import]

Here is my workaround:

function easing\_inOutQuad (t,tMax,start,delta)
 if (2\*t \<= tMax) then
 return start + 2\*delta\*t^2/tMax^2;
 else
 return start + delta\*(1-2\*(tMax-t)^2/tMax^2);
 end;
end;

assuming that this is the actually foreseen function for easing.inOutQuad.

**[edit]**just as a side note: inOutExpo works properly out-of-the-box!

Kind regards,

Andreas Rozek [import]uid: 4331 topic_id: 838 reply_id: 1846[/import]

(Logged as bug #122) [import]uid: 3007 topic_id: 838 reply_id: 1995[/import]