@drozdik.m/lerp
Version:
Collection of lerp functions.
8 lines (7 loc) • 357 B
text/typescript
import { ILerpFunction } from "./ILerpFunction";
export let EaseOutQuint : ILerpFunction = function (from: number, to: number, currentFrame: number, totalFrames: number): number
{
currentFrame /= totalFrames;
currentFrame--;
return (to - from) * (currentFrame * currentFrame * currentFrame * currentFrame * currentFrame + 1) + from;
}