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; });