UNPKG

@studiometa/js-toolkit

Version:

A set of useful little bits of JavaScript to boost your project! 🚀

11 lines (10 loc) • 400 B
/** * Interpolate the ratio between a given interval. * * @param min The interval minimum value. * @param max The inverval maximum value. * @param ratio The ratio to get. * @return The value between min and max corresponding to ratio. * @link https://js-toolkit.studiometa.dev/utils/math/lerp.html */ export declare function lerp(min: number, max: number, ratio: number): number;