com.badlogic.gdx.utils
Class NumberUtils
java.lang.Object
com.badlogic.gdx.utils.NumberUtils
public class NumberUtils
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NumberUtils
public NumberUtils()
floatToIntBits
public static int floatToIntBits(float value)
floatToRawIntBits
public static int floatToRawIntBits(float value)
floatToIntColor
public static int floatToIntColor(float value)
intToFloatColor
public static float intToFloatColor(int value)
- Encodes the ABGR int color as a float. The high bits are masked to avoid using floats in the NaN range, which unfortunately
means the full range of alpha cannot be used. See
Float.intBitsToFloat(int)
javadocs.
intBitsToFloat
public static float intBitsToFloat(int value)
doubleToLongBits
public static long doubleToLongBits(double value)
longBitsToDouble
public static double longBitsToDouble(long value)
Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)