com.jogamp.opengl.math
Class Binary64

java.lang.Object
  extended by com.jogamp.opengl.math.Binary64

public final class Binary64
extends Object

Functions for interrogating binary64 (double) values.


Constructor Summary
Binary64()
           
 
Method Summary
static long unpackGetExponentUnbiased(double d)
           Extract and unbias the exponent of the given packed double value.
static long unpackGetSign(double d)
           Return the sign of the given double value.
static long unpackGetSignificand(double d)
           Return the significand of the given double value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Binary64

public Binary64()
Method Detail

unpackGetExponentUnbiased

public static long unpackGetExponentUnbiased(double d)

Extract and unbias the exponent of the given packed double value.

The exponent is encoded biased as a number in the range [0, 2047], with 0 indicating that the number is subnormal and [1, 2046] denoting the actual exponent plus BIAS. Infinite and NaN values always have a biased exponent of 2047.

This function will therefore return:

See Also:
#packSetExponentUnbiasedUnchecked(int)

unpackGetSignificand

public static long unpackGetSignificand(double d)

Return the significand of the given double value.


unpackGetSign

public static long unpackGetSign(double d)

Return the sign of the given double value.



Copyright 2010 JogAmp Community.