Appearance
KBE3D / KBCore / Cesium / Math / fastApproximateAtan
函数: fastApproximateAtan()
fastApproximateAtan(
x:number):number
Computes a fast approximation of Atan for input in the range [-1, 1].
Based on Michal Drobot's approximation from ShaderFastLibs, which in turn is based on "Efficient approximations for the arctangent function," Rajan, S. Sichun Wang Inkol, R. Joyal, A., May 2006. Adapted from ShaderFastLibs under MIT License.
参数
x
number
An input number in the range [-1, 1]
返回
number
An approximation of atan(x)
