code: function(checkValue, minValue, maxValue) {
          if (minValue < maxValue)
              return (checkValue - minValue) / (maxValue - minValue);
          else return (checkValue - maxValue) / (minValue - maxValue);
      }
docs: @
  #Crafty.math.amountOf
  @comp Crafty.math
  @kind Method
  
  @sign public Number Crafty.math.amountOf(Number checkValue, Number minValue, Number maxValue)
  @param checkValue - Value that should checked with minimum and maximum.
  @param minValue - Bottom of the range
  @param maxValue - Top of the range
  @return The position of the checked value in a coordinate system normalized such that `minValue` is 0 and `maxValue` is 1.
  
  If checkValue is within the range, this will return a number between 0 and 1.