コード例 #1
0
 public static double sin(double x)
 {
     if (Settings.SINCOS_LUT_ENABLED)
     {
         return(sinLUT(x));
     }
     return((double)StrictMath.sin(x));
 }
コード例 #2
0
 public static int round(double x)
 {
     if (Settings.FAST_ROUND)
     {
         return(floor(x + .5d));
     }
     return(StrictMath.round(x));
 }
コード例 #3
0
 public static double atan2(double y, double x)
 {
     if (Settings.FAST_ATAN2)
     {
         return(fastAtan2(y, x));
     }
     return((double)StrictMath.atan2(y, x));
 }
コード例 #4
0
 public static double cos(double x)
 {
     if (Settings.SINCOS_LUT_ENABLED)
     {
         return(sinLUT(HALF_PI - x));
     }
     return((double)StrictMath.cos(x));
 }
コード例 #5
0
 public static double sqrt(double x)
 {
     return((double)StrictMath.sqrt(x));
 }