code: function(value, min, max) {
          if (value > max) return max;
          else if (value < min) return min;
          else return value;
      }
docs: @
  #Crafty.math.clamp
  @comp Crafty.math
  @kind Method
  
  @sign public Number Crafty.math.clamp(Number value, Number min, Number max)
  @param value - A value.
  @param max - Maximum that value can be.
  @param min - Minimum that value can be.
  @return The value between minimum and maximum.
  
  Restricts a value to be within a specified range.