JS弧度转角度

来源:互联网 发布:精美的php 个人博客 编辑:程序博客网 时间:2024/04/30 04:05
<!DOCTYPE HTML><html><body><script>    //弧度 = π/180×角度    //角度 = 180/π×弧度    var hd = Math.PI / 180 * 30 ;    var jd = 180/Math.PI * hd;    //角度 = 180/Math.PI * Math.asin(1/2)    console.log(Math.sin(Math.PI/180*30));</script></body></html>
0 0