List of utility methods to do Integer to Float
float[] | convertIntToFloat(final int[] intValues) convert Int To Float if (intValues == null) { return null; if (intValues.length == 0) { return new float[0]; final float[] floatValues = new float[intValues.length]; for (int valueIndex = 0; valueIndex < intValues.length; valueIndex++) { ... |
float[] | convertIntToFloat(int arr[]) convert Int To Float float array[] = new float[arr.length]; for (int i = 0; i < array.length; i++) array[i] = arr[i]; return array; |
float | intToFloat(int integer) Convert an integer to an arbitrary float. float result = Float.intBitsToFloat(integer); if (Float.isNaN(result)) { result = Float.intBitsToFloat(integer - 0x00800001); return result; |
float[] | intToFloat(int[] values) int To Float if (values == null) { return null; float[] results = new float[values.length]; for (int i = 0; i < values.length; i++) { results[i] = values[i]; return results; ... |
double | IntToFloat(long x) Int To Float return x;
|
Float[] | intToFloatArray(int[] ints) int To Float Array Float[] floats = new Float[ints.length]; for (int i = 0; i < ints.length; i++) { floats[i] = (float) ints[i]; return floats; |
float | intToFloatColor(int value) Encodes the ABGR int color as a float. return Float.intBitsToFloat(value & 0xfeffffff);
|