fix 2 to DIM in virtualRebaseSimple just in case

This commit is contained in:
Zeno Rogue 2019-03-03 00:44:09 +01:00
parent 52ce5ac9aa
commit e99e05944a
1 changed files with 2 additions and 2 deletions

View File

@ -380,7 +380,7 @@ void virtualRebaseSimple(heptagon*& base, transmatrix& at) {
while(true) {
double currz = at[2][2];
double currz = at[DIM][DIM];
heptagon *h = base;
@ -392,7 +392,7 @@ void virtualRebaseSimple(heptagon*& base, transmatrix& at) {
heptspin hs(h, d, false);
heptspin hs2 = hs + wstep;
transmatrix V2 = spin(-hs2.spin*2*M_PI/S7) * invheptmove[d] * at;
double newz = V2[2][2];
double newz = V2[DIM][DIM];
if(newz < currz) {
currz = newz;
bestV = V2;