I wanted to perform Easing on an iOS application but the closest thing I could find was in JavaScript
. Here it is
const Easing = {
QuadraticInOut: function (k) {
if ((k *= 2) < 1) {
return 0.5 * k * k;
}
return - 0.5 * (--k * (k - 2) - 1);
},
}
What does it mean ?