js中角度和弧度的计算

弧度 = 角度 * Math.PI / 180
角度 = 弧度 * 180 / Math.PI

tan() 方法可返回一个表示某个角的正切的数字。
Math.tan(x)

你可能感兴趣的:(javascript)