예제 #1
0
 public double distEntre2Pontos(Ponto p)
 {
     return((double)Math.Sqrt(((p.x - x) * (p.x - x)) + ((p.y - y) * (p.y - y))));
 }
예제 #2
0
 public Ponto(Ponto p)
 {
     x = p.x;
     y = p.y;
 }