Interpolates at a given percentage t
between value1
and value2
. 't' is usually a number between 0 and 1.
Interpolate half way between 2 and 5. The result in lerpedValue
will be 3.5
.
let lerpedValue = gmynd.lerp(2, 5, 0.5);
Interpolates at a given percentage t
between value1
and value2
. 't' is usually a number between 0 and 1.
Interpolate half way between 2 and 5. The result in lerpedValue
will be 3.5
.
let lerpedValue = gmynd.lerp(2, 5, 0.5);