Package com.jogamp.opengl.math
Class Binary32
- java.lang.Object
-
- com.jogamp.opengl.math.Binary32
-
public final class Binary32 extends Object
Functions for interrogatingbinary32
(float) values.
-
-
Constructor Summary
Constructors Constructor Description Binary32()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
unpackGetExponentUnbiased(float d)
Extract and unbias the exponent of the given packedfloat
value.static int
unpackGetSign(float d)
Return the sign of the given float value.static int
unpackGetSignificand(float d)
Return the significand of the given float value.
-
-
-
Method Detail
-
unpackGetExponentUnbiased
public static int unpackGetExponentUnbiased(float d)
Extract and unbias the exponent of the given packed
float
value.The exponent is encoded biased as a number in the range
[0, 255]
, with0
indicating that the number is subnormal and[1, 254]
denoting the actual exponent plusBIAS
. Infinite andNaN
values always have a biased exponent of255
.This function will therefore return:
- See Also:
#packSetExponentUnbiasedUnchecked(int)
-
unpackGetSign
public static int unpackGetSign(float d)
Return the sign of the given float value.
-
unpackGetSignificand
public static int unpackGetSignificand(float d)
Return the significand of the given float value.
-
-