Source
static num easeOutInCubic(num ratio) { ratio = ratio * 2.0; return (ratio < 1.0) ? 0.5 * easeOutCubic(ratio) : 0.5 * easeInCubic(ratio - 1.0) + 0.5; }
static num easeOutInCubic(num ratio) { ratio = ratio * 2.0; return (ratio < 1.0) ? 0.5 * easeOutCubic(ratio) : 0.5 * easeInCubic(ratio - 1.0) + 0.5; }