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.
2 点間の距離の方程式をどのように変換しますか。
sqrt((x2 − x1)^2 + (y2 − y1)^2)
適切なJavaコードに?
Math.powとMath.sqrtのパッケージを使用できますjava.lang.Math
Math.pow
Math.sqrt
java.lang.Math