public final class NFPSignedDoubleInt 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 | Description |
|---|---|---|
static double |
fromSignedNormalizedWithoutZero(int f,
int b) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero10(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero11(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero12(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero13(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero14(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero15(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero16(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero17(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero18(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero19(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero2(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero20(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero21(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero22(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero23(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero24(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero25(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero26(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero27(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero28(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero29(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero3(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero30(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero31(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero32(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero4(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero5(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero6(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero7(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero8(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithoutZero9(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero(int f,
int b) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero10(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero11(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero12(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero13(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero14(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero15(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero16(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero17(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero18(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero19(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero2(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero20(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero21(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero22(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero23(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero24(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero25(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero26(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero27(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero28(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero29(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero3(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero30(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero31(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero32(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero4(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero5(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero6(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero7(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero8(int f) |
Convert
f to floating point format. |
static double |
fromSignedNormalizedWithZero9(int f) |
Convert
f to floating point format. |
static int |
toSignedNormalizedWithoutZero(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double x) |
Convert
x to fixed-point format using the with-zero
representation described in the documentation at the beginning of this
class. |
public static double 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][-1, 1]public static int toSignedNormalizedWithoutZero(double 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 double 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][-1, 1]public static int toSignedNormalizedWithZero(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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(double 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 double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]public static double 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][-1, 1]Copyright © 2017 <code@io7m.com> http://io7m.com