Method Clamp
Clamp(int, int, int)
Clamps given value between specified dimensions.
public static int Clamp(int value, int min, int max)
Parameters
Returns
- int
Integer value that does not exceed specified dimensions.
Clamp(double, double, double)
Clamps given value between specified dimensions.
public static double Clamp(double value, double min, double max)
Parameters
Returns
- double
Double value that does not exceed specified dimensions.