예제 #1
0
 public static float Acos(float Angle)
 {
     return(1.5707963267948966192313216916398f - FastMathF.Asin(Angle)); //(PI / 2)
 }
예제 #2
0
 public static float Log2(float x)
 {
     return(FastMathF.Log(x) / 0.69314718055994530941723212145818f);
 }
예제 #3
0
        public static float Log(float x, float newbase)
        {
            Debug.Assert(x != 0.0f);

            return(FastMathF.Log(x) / FastMathF.Log(newbase));
        }
예제 #4
0
 public static float Exp2(float x)
 {
     return(FastMathF.Exp(0.69314718055994530941723212145818f * x));
 }
 public static float FastSqrt(float x)
 {
     return(1.0f / FastMathF.InverseSqrt(x));
     //return 1.0f / FastInverseSqrt(x);
 }