Class Mathd

  • All Implemented Interfaces:
    java.io.Serializable

    public final class Mathd
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Mathd()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double InvSqrt​(double dValue)
      Calculation of 1/sqrt(dValue)
      static double Log2​(float dValue)  
      static double SymmetricRandom()
      Generate a random number in [-1,1).
      static double UnitRandom()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Mathd

        public Mathd()
    • Method Detail

      • InvSqrt

        public static double InvSqrt​(double dValue)
        Calculation of 1/sqrt(dValue)
        Parameters:
        dValue - value to calculate 1/sqrt(dValue)
        Returns:
        1/sqrt(dValue)
      • Log2

        public static double Log2​(float dValue)
      • SymmetricRandom

        public static double SymmetricRandom()
        Generate a random number in [-1,1). The random number generator may be seeded by a first call to SymmetricRandom with a positive seed.
        Returns:
        a random number in [-1,1)
      • UnitRandom

        public static double UnitRandom()