import math.geom2d.Point2D; import math.geom2d.line.Line2D; public class Main { public static void main(String[] args) { Point2D point1 = new Point2D(0, 0); Point2D point2 = new Point2D(2, 2); Line2D line = new Line2D(point1, point2); double length = line.getLength(); } }


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