Package de.gsi.math

Class FastMath


  • public class FastMath
    extends java.lang.Object
    Simple quick-and-dirty math lookup table TODO: evaluate whether this should be replaced by the better implementations in: https://github.com/jeffhain/jafama (N.B. main concern: dependency on yet another external library)
    Author:
    rstein
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double cos​(double a)  
      static float cos​(float a)  
      static double cosDeg​(double a)  
      static float cosDeg​(float a)  
      static int getPrecision()  
      static void setPrecision​(int precision)  
      static double sin​(double a)  
      static float sin​(float a)  
      static double sinDeg​(double a)  
      static float sinDeg​(float a)  
      • Methods inherited from class java.lang.Object

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

      • cos

        public static double cos​(double a)
      • cos

        public static float cos​(float a)
      • cosDeg

        public static double cosDeg​(double a)
      • cosDeg

        public static float cosDeg​(float a)
      • getPrecision

        public static int getPrecision()
      • setPrecision

        public static void setPrecision​(int precision)
      • sin

        public static double sin​(double a)
      • sin

        public static float sin​(float a)
      • sinDeg

        public static double sinDeg​(double a)
      • sinDeg

        public static float sinDeg​(float a)