public Point getP1() { return p1.clone(); }
public Point getP2() { return p2.clone(); }
public Line(Point p1, Point p2) { this.p1 = p1.clone(); this.p2 = p2.clone(); }