nin icon indicating copy to clipboard operation
nin copied to clipboard

elasticOut does not behave as I originally expected

Open lionleaf opened this issue 7 years ago • 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?

lionleaf avatar Dec 15 '17 02:12 lionleaf

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

stianjensen avatar Dec 15 '17 08:12 stianjensen

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

stianjensen avatar Dec 15 '17 08:12 stianjensen

, I always try random values.

me too!

sigvef avatar Dec 15 '17 08:12 sigvef