(value, min_value, max_value)
return value
Clamps the given value between min and max
Clamps the given value between min and max
Clamps the given value between min and max
def clamp(value, min_value, max_value):
    """Clamps the given value between min and max"""
    if value > max_value:
        return max_value
    if value < min_value:
        return min_value
    return value
def clamp ( value , min_value , max_value ) : if value > max_value : return max_value if value < min_value : return min_value return value