JavaScript math.pow 及atan2函数

Math.pow(a,b);表示a的b次方

如:Math.pow(4,3)=64


atan2(a,b)函数表示以坐标(a,b)与原点的连线与X轴正方向的夹角弧度

如:atan2(0,1)==π/2

 

posted on 2018-11-12 16:16  wcphahaha  阅读(350)  评论(0编辑  收藏  举报

导航