lib/toxi/math/ScaleMap.js
function(val) {
        var t = ((val - this._in.min) / this._interval);
        return this.mapFunction.interpolate(0,  this.mapRange, t) + this._out.min;
    }
function(val) {
        var t = ((val - this._in.min) / this._interval);
        return this.mapFunction.interpolate(0,  this.mapRange, t) + this._out.min;
    }
function ( val ) { var t = ( ( val - this . _in . min ) / this . _interval ) ; return this . mapFunction . interpolate ( 0 , this . mapRange , t ) + this . _out . min ; }
Computes mapped value in the target interval. Does check if input value
is outside the input range.

@param val
@return mapped value
Computes mapped value in the target interval . Does check if input value is outside the input range .