@staticmethod
def getpercent(val, min, max):
    """returns what percent (0 to 1) val is between min and max.
        eg: val of 15 from 10 to 20 will return 0.5"""
    return (val - min) / (max - min)
