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
Name | Type | Description | |
---|---|---|---|
1 | min | number | |
2 | max | number | |
3 | amount | number |
Return value
number
the result
Usage
import {Utils} from '@lcluber/type6js';
let lerp = Utils.lerp(2,5,0.5);
console.log(lerp); //3.5