4 lines
75 B
JavaScript
4 lines
75 B
JavaScript
|
function lerp(v0, v1, t) {
|
||
|
return v0*(1-t)+v1*t
|
||
|
}
|
||
|
module.exports = lerp
|