Match the argument ordering of the float version.
This commit is contained in:
@@ -12,7 +12,7 @@ public class MathUtil
|
||||
/**
|
||||
* Clamps the supplied {@code value} to between {@code low} and {@code high} (both inclusive).
|
||||
*/
|
||||
public static int clamp (int low, int value, int high) {
|
||||
public static int clamp (int value, int low, int high) {
|
||||
if (value < low) return low;
|
||||
if (value > high) return high;
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user