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.
我想在JS中得到一个三角形的角度。
在计算相反/相邻之后,如何用 Tangent 得出角度的度数?
degrees = Math.atan(a/b) * 180 / Math.PI;
一定要验证 b... 如果它为 0,可能会发生坏事。
参考文献:Math.atan,Math.PI