更新pow22算法

This commit is contained in:
hyzboy 2020-01-20 17:05:13 +08:00
parent e2cf0d6041
commit 8f024e1598

View File

@ -22,12 +22,10 @@ namespace hgl
/**
* Pow2.2使pow(x,2.2)
* The MIT License
* Copyright © 2019 Inigo Quilez
*/
double inline ApproxPow22(double x)
double inline LPow22(double x)
{
return ((exp2(x)-1.0)-x*0.693147)*3.258891;
return x*(1.12*x - 0.12);
}
}//namespace hgl
#endif//HGL_ALGORITHM_MATH_FAST_TRIANGLE_FUNCTION_INCLUDE