lerp.js 239 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 /** * Linear interpolation. * IMPORTANT:will return `Infinity` if numbers overflow Number.MAX_VALUE */ function lerp(ratio, start, end){ return start + (end - start) * ratio; } module.exports = lerp;