static double DistanciaPontos(Ponto p1, Ponto p2) { return(Math.Sqrt(Math.Pow(p1.x - p2.x, 2) + Math.Pow(p1.y - p2.y, 2))); }