import com.hk.math.RPoint; public class DistanceCalculator { public static void main(String[] args) { RPoint point1 = new RPoint(0, 0); RPoint point2 = new RPoint(3, 4); double distance = point1.distanceTo(point2); System.out.println("The distance between the two points is: " + distance); } }


上一篇:
下一篇:
切换中文