wcphahaha

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

原文地址:https://www.cnblogs.com/qwe123qwe/p/9947249.html