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.
我将如何转换两点之间距离的方程式:
sqrt((x2 − x1)^2 + (y2 − y1)^2)
进入正确的Java代码?
你可以使用Math.pow和Math.sqrt包java.lang.Math
Math.pow
Math.sqrt
java.lang.Math