public final class NumberUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
intToFloatColorMask
When false, the mask in
intToFloatColor(int) will not be used. |
Constructor and Description |
---|
NumberUtils() |
Modifier and Type | Method and Description |
---|---|
static long |
doubleToLongBits(double value) |
static int |
floatToIntBits(float value) |
static int |
floatToIntColor(float value) |
static int |
floatToRawIntBits(float value) |
static float |
intBitsToFloat(int value) |
static float |
intToFloatColor(int value)
Encodes the ABGR int color as a float.
|
static double |
longBitsToDouble(long value) |
public static boolean intToFloatColorMask
intToFloatColor(int)
will not be used. This must only be used when the resulting floats
will not be used with floatToIntColor(float)
.public static int floatToIntBits(float value)
public static int floatToRawIntBits(float value)
public static int floatToIntColor(float value)
public static float intToFloatColor(int value)
Float.intBitsToFloat(int)
javadocs.public static float intBitsToFloat(int value)
public static long doubleToLongBits(double value)
public static double longBitsToDouble(long value)