将角度单位从度转换为弧度。
度和弧度都是测量角度的单位。一次完整的旋转等于 360 度。一次完整的旋转是 2 × π(约6.28)弧度。
同一个角度可以用这两种单位来表示。例如,90° 是四分之一次完整的旋转。同样的角度是 2 × π ÷ 4(约1.57)弧度。
示例
语法
radians(degrees)
参数
degrees
数字:
要转换为弧度的度数值。
返回值
数字: 转换后的角度。
This page is generated from the comments in src/math/trigonometry.js . Please feel free to edit it and submit a pull request!