UNPKG

@drozdik.m/lerp

Version:
7 lines (6 loc) 314 B
import { ILerpFunction } from "./ILerpFunction"; export let EaseInQuart : ILerpFunction = function (from: number, to: number, currentFrame: number, totalFrames: number): number { currentFrame /= totalFrames; return (to - from) * currentFrame * currentFrame * currentFrame * currentFrame + from; }