ninjadev/nin

elasticOut does not behave as I originally expected

lionleaf opened this issue · 3 comments

My expectation was that elasticOut(a, b, c, 0) = a and elasticOut(a, b, c, >1) = b in a similar way lerp(a, b, 0) = a and lerp(a, b, 1) = b.

However, it turns out that elasticOut(a, b, c, 1) = a + b.

Is this the intended behaviour, or are we missing a -b somewhere?

PS: What's the interpretation of the third parameter?

Oh, is that what is wrong? I copied in the function right before delivery at a party and I agree it has been a bit confusing, but I've never investigated it. This should be fixed :D

Regarding the third parameter. I'm not sure, I always try random values.

, I always try random values.

me too!