﻿import { ILerpFunction } from "./ILerpFunction";

export let EaseOutCubic : ILerpFunction = function (from: number, to: number, currentFrame: number, totalFrames: number): number
{
    currentFrame /= totalFrames;
    currentFrame--;
    return (to - from) * (currentFrame * currentFrame * currentFrame + 1) + from;
}