Last active
April 2, 2018 16:58
-
-
Save oppahero/91c0472de77cefa9554c99fda97d3b78 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Método de clase TianguloE.Realiza la composición de las permutaciones recibidas y la retorna | |
public Permutacion operarPermutaciones(Permutacion p1, Permutacion p2){ | |
int pos1,pos2,pos3; | |
pos1 = p2.getVertice(p1.getVertice(1)); | |
pos2 = p2.getVertice(p1.getVertice(2)); | |
pos3 = p2.getVertice(p1.getVertice(3)); | |
Permutacion aux; | |
aux = new Permutacion (pos1,pos2,pos3); | |
asignaNombre(aux); | |
return aux; | |
} | |
//Método de clase Permutacion | |
public int devuelveVert(int base){ | |
return matriz[1][base-1]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment