Custom Ease
| 467 | |
| 468 | // Custom Ease |
| 469 | float customEase(float time, float* easingParam) |
| 470 | { |
| 471 | if (easingParam) |
| 472 | { |
| 473 | float tt = 1 - time; |
| 474 | return easingParam[1] * tt * tt * tt + 3 * easingParam[3] * time * tt * tt + |
| 475 | 3 * easingParam[5] * time * time * tt + easingParam[7] * time * time * time; |
| 476 | } |
| 477 | return time; |
| 478 | } |
| 479 | |
| 480 | float easeIn(float time, float rate) |
| 481 | { |