计算一个角度的正切值。
tan() 在创意编程里的许多几何任务中都非常有用。返回的值范围从负无穷到正无穷,并随着输入角度的增加而周期性地重复。tan() 会考虑当前的 angleMode()。
示例
语法
tan(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!