Appearance
KBE3D / KBCore / Cesium / Math / acosClamped
函数: acosClamped()
acosClamped(
value:number):number
Computes <code>Math.acos(value)</code>, but first clamps <code>value</code> to the range [-1.0, 1.0] so that the function will never return NaN.
参数
value
number
The value for which to compute acos.
返回
number
The acos of the value if the value is in the range [-1.0, 1.0], or the acos of -1.0 or 1.0, whichever is closer, if the value is outside the range.
