public ArestaDelaunay(Ponto A, Ponto B) { this._origem = A; this._pontoB = B; referente = 0; vizinho = null; }
public ArestaDelaunay(Ponto A, Ponto B, TrianguloDelaunay T, int r) { vizinho = T; referente = r; this._origem = A; this._pontoB = B; this.Diretor = new Vetor(A,B); }
public TrianguloDelaunay(Ponto A, Ponto B, Ponto C) { _pontoA = A; _pontoB = B; _pontoC = C; _vizinho1 = null; _vizinho2 = null; _vizinho3 = null; _circuncentro = new SegmentoDeReta(A, B).Intersecta(new Reta(A, B)); _circunscrito = new Circulo(Circuncentro, A.RetornaDistancia(Circuncentro)); }
public int qualVizinho(TrianguloDelaunay T) { if(Vizinho1 == T) return 1; if(Vizinho2 == T) return 2; if(Vizinho3 == T) return 3; return 0; }