Package de.gsi.math
Class FastMath
- java.lang.Object
-
- de.gsi.math.FastMath
-
public class FastMath extends java.lang.ObjectSimple 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 doublecos(double a)static floatcos(float a)static doublecosDeg(double a)static floatcosDeg(float a)static intgetPrecision()static voidsetPrecision(int precision)static doublesin(double a)static floatsin(float a)static doublesinDeg(double a)static floatsinDeg(float a)
-
-
-
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)
-
-