pop*_*pel 0 javascript math
我想通过xValue和yValue确定一个角度,但如果xValue为零,我就无法工作.那个案子我该怎么办?
Math.atan(yValue/xValue);
Aki*_*nen 6
使用Math.atan2(y,x);
Math.atan2(y,x)
Math.atan2(1,0)
结果:
1.5707963267948966
归档时间:
12 年,8 月 前
查看次数:
133 次
最近记录: