Method Clamp
Clamp(double, double, double)
Constrains a value between a minimum and a maximum.
Declaration
public static double Clamp(double input, double min, double max)
Parameters
Type | Name | Description |
---|---|---|
double | input | The input number. |
double | min | The minimum output. |
double | max | The maximum output. |
Returns
Type | Description |
---|---|
double | The |