changed gmatrix to simply use hdist0 instead of case-based

This commit is contained in:
Zeno Rogue 2019-12-06 13:04:57 +01:00
parent 8ce6135599
commit 9ed9c84b33
1 changed files with 1 additions and 8 deletions

View File

@ -1693,14 +1693,7 @@ void celldrawer::bookkeeping() {
bool orig = false;
if(!inmirrorcount) {
transmatrix& gm = gmatrix[c];
orig =
gm[LDIM][LDIM] == 0 ? true :
euclid ? hdist0(tC0(gm)) >= hdist0(tC0(V)) :
in_e2xe() ? hdist0(tC0(gm)) >= hdist0(tC0(V)) :
(nil||sol) ? sqhypot_d(3, tC0(gm)) >= sqhypot_d(3, tC0(V)) :
sphereflipped() ? fabs(gm[LDIM][LDIM]-1) <= fabs(V[LDIM][LDIM]-1) :
fabs(gm[LDIM][LDIM]-1) >= fabs(V[LDIM][LDIM]-1) - 1e-8;
orig = (gm[LDIM][LDIM] == 0) || hdist0(tC0(gm)) >= hdist0(tC0(V));
if(orig) gm = V;
}
if(just_gmatrix) return;