Code coverage report for math/norm.js

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

All files » math/ » norm.js
1 2 3 4 5 6 7 8 9 101       1 8   1    
define(function(){
    /**
    * Gets normalized ratio of value inside range.
    */
    function norm(val, min, max){
        return (val - min) / (max - min);
    }
    return norm;
});