diff options
Diffstat (limited to 'src/Java/gtPlusPlus/core/util/math')
| -rw-r--r-- | src/Java/gtPlusPlus/core/util/math/MathUtils.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/core/util/math/MathUtils.java b/src/Java/gtPlusPlus/core/util/math/MathUtils.java index c864df491c..a7cb916d0d 100644 --- a/src/Java/gtPlusPlus/core/util/math/MathUtils.java +++ b/src/Java/gtPlusPlus/core/util/math/MathUtils.java @@ -266,5 +266,18 @@ public class MathUtils { } return Utils.rgbtoHexValue(RGBA[0], RGBA[1], RGBA[2]); } + + + public final static int returnLargestNumber(int a, int b){ + if (a > b){ + return a; + } + else if (a == b){ + return a; + } + else { + return b; + } + } } |
