Returns the value of the first parameter, clamped to be within the lower and upper limits given by the second and third parameters
(float num, float min, float max)
| 141 | * third parameters |
| 142 | */ |
| 143 | public static float clamp_float(float num, float min, float max) |
| 144 | { |
| 145 | return num < min ? min : (num > max ? max : num); |
| 146 | } |
| 147 | |
| 148 | public static double clamp_double(double num, double min, double max) |
| 149 | { |
no outgoing calls
no test coverage detected