public final class NFPSignedFloatInt extends Object
Conversion of signed normalized fixed-point values to and from floating point values.
The OpenGL 3.3 specification defines two representations of signed
normalized fixed-point values with b bits of precision. The first
representation maps -1.0 to -(2 ^ (b - 1)) and 1.0 to
(2 ^ (b -1)) - 1. This representation does not allow for 0 to
be expressed directly. The second representation maps -1.0 to -(2 ^ (b - 1)) + 1 and 1.0 to (2 ^ (b -1)) - 1, which allows
for 0 to be represented exactly but means that -(2 ^ (b - 1))
is outside of the representable range.
For lack of better names, this implementation refers to the first
representation as without-zero, and the second as with-zero.
For the without-zero representation, conversion from signed
normalized fixed-point values f to floating point values x is
defined as:
x = ((2 * f) + 1) / (pow(2, b) - 1)
For the with-zero representation, conversion from signed
normalized fixed-point values f to floating point values x is
defined as:
x = max (-1.0, f / (pow(2, b - 1) - 1))
For the without-zero representation, conversion from floating
point values x (assumed to be in the range [-1.0, 1.0]) to
signed normalized fixed-point values f is defined as:
f = ((x * (pow(2, b) - 1)) - 1) / 2
For the with-zero representation, conversion from floating point
values x (assumed to be in the range [-1.0, 1.0]) to signed
normalized fixed-point values f is defined as:
f = x * (pow(2, b - 1) - 1)
This implementation provides general conversion functions that operate on
arbitrary values of b, and specialized functions that operate for
specific values of b using precomputed terms.
| Modifier and Type | Method and Description |
|---|---|
static float |
fromSignedNormalizedWithoutZero(int f,
int b)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero10(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero11(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero12(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero13(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero14(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero15(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero16(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero17(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero18(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero19(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero2(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero20(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero21(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero22(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero23(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero24(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero25(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero26(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero27(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero28(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero29(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero3(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero30(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero31(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero32(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero4(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero5(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero6(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero7(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero8(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithoutZero9(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero(int f,
int b)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero10(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero11(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero12(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero13(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero14(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero15(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero16(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero17(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero18(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero19(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero2(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero20(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero21(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero22(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero23(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero24(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero25(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero26(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero27(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero28(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero29(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero3(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero30(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero31(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero32(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero4(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero5(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero6(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero7(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero8(int f)
Convert
f to floating point format. |
static float |
fromSignedNormalizedWithZero9(int f)
Convert
f to floating point format. |
static int |
toSignedNormalizedWithoutZero(float x,
int b)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero10(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero11(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero12(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero13(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero14(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero15(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero16(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero17(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero18(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero19(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero2(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero20(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero21(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero22(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero23(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero24(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero25(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero26(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero27(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero28(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero29(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero3(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero30(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero31(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero32(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero4(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero5(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero6(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero7(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero8(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithoutZero9(float x)
Convert
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero(float x,
int b)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero10(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero11(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero12(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero13(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero14(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero15(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero16(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero17(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero18(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero19(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero2(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero20(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero21(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero22(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero23(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero24(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero25(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero26(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero27(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero28(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero29(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero3(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero30(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero31(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero32(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero4(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero5(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero6(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero7(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero8(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
static int |
toSignedNormalizedWithZero9(float x)
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
public static float fromSignedNormalizedWithoutZero(int f,
int b)
f to floating point format. f is assumed to be an
signed fixed-point value with b bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (b - 1)), (2 ^ (b -1)) - 1]b - A value in the range [2, 32]public static int toSignedNormalizedWithoutZero(float x,
int b)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]b - A value in the range [2, 32]b bits of
precisionpublic static float fromSignedNormalizedWithZero(int f,
int b)
f to floating point format. f is assumed to be an
signed fixed-point value with b bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ (b - 1)) + 1, (2 ^ (b -1)) -
1]b - A value in the range [2, 32]public static int toSignedNormalizedWithZero(float x,
int b)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]b - A value in the range [2, 32]b bits of
precisionpublic static int toSignedNormalizedWithoutZero2(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero2(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero3(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero3(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero4(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero4(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero5(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero5(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero6(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero6(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero7(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero7(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero8(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero8(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero9(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero9(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero10(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero10(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero11(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero11(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero12(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero12(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero13(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero13(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero14(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero14(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero15(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero15(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero16(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero16(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero17(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero17(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero18(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero18(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero19(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero19(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero20(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero20(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero21(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero21(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero22(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero22(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero23(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero23(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero24(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero24(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero25(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero25(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero26(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero26(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero27(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero27(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero28(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero28(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero29(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero29(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero30(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero30(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero31(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero31(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithoutZero32(float x)
x to fixed-point format using the without-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static int toSignedNormalizedWithZero32(float x)
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class.x - A value in the range [-1, 1]public static float fromSignedNormalizedWithoutZero2(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 2 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (2 - 1)), (2 ^ (2 - 1)) - 1]public static float fromSignedNormalizedWithZero2(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 2 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 1) + 1, (2 ^ 1) - 1]public static float fromSignedNormalizedWithoutZero3(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 3 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (3 - 1)), (2 ^ (3 - 1)) - 1]public static float fromSignedNormalizedWithZero3(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 3 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 2) + 1, (2 ^ 2) - 1]public static float fromSignedNormalizedWithoutZero4(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 4 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (4 - 1)), (2 ^ (4 - 1)) - 1]public static float fromSignedNormalizedWithZero4(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 4 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 3) + 1, (2 ^ 3) - 1]public static float fromSignedNormalizedWithoutZero5(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 5 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (5 - 1)), (2 ^ (5 - 1)) - 1]public static float fromSignedNormalizedWithZero5(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 5 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 4) + 1, (2 ^ 4) - 1]public static float fromSignedNormalizedWithoutZero6(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 6 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (6 - 1)), (2 ^ (6 - 1)) - 1]public static float fromSignedNormalizedWithZero6(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 6 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 5) + 1, (2 ^ 5) - 1]public static float fromSignedNormalizedWithoutZero7(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 7 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (7 - 1)), (2 ^ (7 - 1)) - 1]public static float fromSignedNormalizedWithZero7(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 7 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 6) + 1, (2 ^ 6) - 1]public static float fromSignedNormalizedWithoutZero8(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 8 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (8 - 1)), (2 ^ (8 - 1)) - 1]public static float fromSignedNormalizedWithZero8(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 8 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 7) + 1, (2 ^ 7) - 1]public static float fromSignedNormalizedWithoutZero9(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 9 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (9 - 1)), (2 ^ (9 - 1)) - 1]public static float fromSignedNormalizedWithZero9(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 9 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 8) + 1, (2 ^ 8) - 1]public static float fromSignedNormalizedWithoutZero10(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 10 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (10 - 1)), (2 ^ (10 - 1)) -
1]public static float fromSignedNormalizedWithZero10(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 10 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 9) + 1, (2 ^ 9) - 1]public static float fromSignedNormalizedWithoutZero11(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 11 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (11 - 1)), (2 ^ (11 - 1)) -
1]public static float fromSignedNormalizedWithZero11(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 11 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 10) + 1, (2 ^ 10) - 1]public static float fromSignedNormalizedWithoutZero12(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 12 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (12 - 1)), (2 ^ (12 - 1)) -
1]public static float fromSignedNormalizedWithZero12(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 12 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 11) + 1, (2 ^ 11) - 1]public static float fromSignedNormalizedWithoutZero13(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 13 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (13 - 1)), (2 ^ (13 - 1)) -
1]public static float fromSignedNormalizedWithZero13(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 13 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 12) + 1, (2 ^ 12) - 1]public static float fromSignedNormalizedWithoutZero14(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 14 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (14 - 1)), (2 ^ (14 - 1)) -
1]public static float fromSignedNormalizedWithZero14(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 14 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 13) + 1, (2 ^ 13) - 1]public static float fromSignedNormalizedWithoutZero15(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 15 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (15 - 1)), (2 ^ (15 - 1)) -
1]public static float fromSignedNormalizedWithZero15(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 15 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 14) + 1, (2 ^ 14) - 1]public static float fromSignedNormalizedWithoutZero16(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 16 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (16 - 1)), (2 ^ (16 - 1)) -
1]public static float fromSignedNormalizedWithZero16(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 16 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 15) + 1, (2 ^ 15) - 1]public static float fromSignedNormalizedWithoutZero17(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 17 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (17 - 1)), (2 ^ (17 - 1)) -
1]public static float fromSignedNormalizedWithZero17(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 17 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 16) + 1, (2 ^ 16) - 1]public static float fromSignedNormalizedWithoutZero18(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 18 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (18 - 1)), (2 ^ (18 - 1)) -
1]public static float fromSignedNormalizedWithZero18(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 18 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 17) + 1, (2 ^ 17) - 1]public static float fromSignedNormalizedWithoutZero19(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 19 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (19 - 1)), (2 ^ (19 - 1)) -
1]public static float fromSignedNormalizedWithZero19(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 19 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 18) + 1, (2 ^ 18) - 1]public static float fromSignedNormalizedWithoutZero20(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 20 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (20 - 1)), (2 ^ (20 - 1)) -
1]public static float fromSignedNormalizedWithZero20(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 20 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 19) + 1, (2 ^ 19) - 1]public static float fromSignedNormalizedWithoutZero21(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 21 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (21 - 1)), (2 ^ (21 - 1)) -
1]public static float fromSignedNormalizedWithZero21(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 21 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 20) + 1, (2 ^ 20) - 1]public static float fromSignedNormalizedWithoutZero22(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 22 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (22 - 1)), (2 ^ (22 - 1)) -
1]public static float fromSignedNormalizedWithZero22(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 22 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 21) + 1, (2 ^ 21) - 1]public static float fromSignedNormalizedWithoutZero23(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 23 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (23 - 1)), (2 ^ (23 - 1)) -
1]public static float fromSignedNormalizedWithZero23(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 23 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 22) + 1, (2 ^ 22) - 1]public static float fromSignedNormalizedWithoutZero24(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 24 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (24 - 1)), (2 ^ (24 - 1)) -
1]public static float fromSignedNormalizedWithZero24(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 24 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 23) + 1, (2 ^ 23) - 1]public static float fromSignedNormalizedWithoutZero25(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 25 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (25 - 1)), (2 ^ (25 - 1)) -
1]public static float fromSignedNormalizedWithZero25(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 25 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 24) + 1, (2 ^ 24) - 1]public static float fromSignedNormalizedWithoutZero26(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 26 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (26 - 1)), (2 ^ (26 - 1)) -
1]public static float fromSignedNormalizedWithZero26(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 26 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 25) + 1, (2 ^ 25) - 1]public static float fromSignedNormalizedWithoutZero27(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 27 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (27 - 1)), (2 ^ (27 - 1)) -
1]public static float fromSignedNormalizedWithZero27(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 27 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 26) + 1, (2 ^ 26) - 1]public static float fromSignedNormalizedWithoutZero28(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 28 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (28 - 1)), (2 ^ (28 - 1)) -
1]public static float fromSignedNormalizedWithZero28(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 28 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 27) + 1, (2 ^ 27) - 1]public static float fromSignedNormalizedWithoutZero29(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 29 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (29 - 1)), (2 ^ (29 - 1)) -
1]public static float fromSignedNormalizedWithZero29(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 29 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 28) + 1, (2 ^ 28) - 1]public static float fromSignedNormalizedWithoutZero30(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 30 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (30 - 1)), (2 ^ (30 - 1)) -
1]public static float fromSignedNormalizedWithZero30(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 30 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 29) + 1, (2 ^ 29) - 1]public static float fromSignedNormalizedWithoutZero31(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 31 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (31 - 1)), (2 ^ (31 - 1)) -
1]public static float fromSignedNormalizedWithZero31(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 31 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 30) + 1, (2 ^ 30) - 1]public static float fromSignedNormalizedWithoutZero32(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 32 bits of precision, using the without-zero representation described in the documentation at the
beginning of this class.f - A value in the range [-(2 ^ (32 - 1)), (2 ^ (32 - 1)) -
1]public static float fromSignedNormalizedWithZero32(int f)
f to floating point format. f is assumed to be an
signed fixed-point value with 32 bits of precision, using the with-zero representation described in the documentation at the beginning
of this class.f - A value in the range [-(2 ^ 31) + 1, (2 ^ 31) - 1]Copyright © 2015 <code@io7m.com> http://io7m.com