Code coverage report for math/lerp.js

Statements: 100% (5 / 5)      Branches: 100% (0 / 0)      Functions: 100% (3 / 3)      Lines: 100% (4 / 4)     

All files » math/ » lerp.js
1 2 3 4 5 6 7 8 9 10 11 121         1 8     1    
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;
});