计算一个角度的余弦值。
cos() 在创意编程中的许多几何运算中都非常有用。随着输入角度的增加,返回的值在 -1 和 1 之间振荡。cos()考虑了当前的 angleMode()。
示例
语法
cos(angle)
参数
angle
数字:
角度。
返回值
数字: 角度的余弦值。
This page is generated from the comments in src/math/trigonometry.js . Please feel free to edit it and submit a pull request!