Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
xValue と yValue で角度を求めたいのですが、xValue がゼロだとうまくいきません。その場合どうすればいいですか?
Math.atan(yValue/xValue);
使用しMath.atan2(y,x)ます。
Math.atan2(y,x)
Math.atan2(1,0)
結果:
1.5707963267948966