计算一个数字的反余弦值。
acos() 是 cos() 的逆函数。它期望的参数范围是 -1 到 1。默认情况下,acos() 返回的值范围是 0 到 π(约3.14)。如果 angleMode()是DEGREES,那么返回的值范围是 0 到 180。
示例
语法
acos(value)
参数
value
数字:
要返回其反余弦值的数值。
返回值
数字: 给定值的反余弦值。
This page is generated from the comments in src/math/trigonometry.js . Please feel free to edit it and submit a pull request!