code: def clipValue(self, value, minValue, maxValue):
          '''
          Makes sure that value is within a specific range.
          If not, then the lower or upper bounds is returned
          '''
          return min(max(value, minValue), maxValuef clipValue(self, value, minValue, maxValue):
          '''
          Makes sure that value is within a specific range.
          If not, then the lower or upper bounds is returned
          '''
          return min(max(value, minValue), maxValue)
docs: Makes sure that value is within a specific range.
          If not, then the lower or upper bounds is returned