Implement distancia() function from Ponto2D.