Utils.lerp()

Return the interpolation value between the two numbers given as first and second parameters using the normalized amount given as third parameter

Parameters

NameTypeDescription
1minnumber
2maxnumber
3amountnumber

Return value

number

the result

Usage

import {Utils} from '@lcluber/type6js';

let lerp = Utils.lerp(2,5,0.5);
console.log(lerp); //3.5