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