//Get and set - End ========== //Method to calculated distancy public double distancia(Ponto p1, Ponto p2) { double d; d = Math.Sqrt(Math.Pow(p1.getX() - p2.getX(), 2) + Math.Pow(p2.getY() - p1.getY(), 2)); return(d); }
public Ponto(Ponto P) { x = P.getX(); y = P.getY(); }