diff --git a/src/dorkbox/util/MathUtil.java b/src/dorkbox/util/MathUtil.java index e201ef4..1fb1b84 100644 --- a/src/dorkbox/util/MathUtil.java +++ b/src/dorkbox/util/MathUtil.java @@ -94,6 +94,11 @@ class MathUtil { // --- + public static + boolean isEven(int value) { + return (value & 1) == 0; + } + /** * Returns the next power of two. Returns the specified value if the value is already a power of two. */