From 9ed9c84b33e2bd196340fec6ab6ec3175384ff37 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 6 Dec 2019 13:04:57 +0100 Subject: [PATCH] changed gmatrix to simply use hdist0 instead of case-based --- celldrawer.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/celldrawer.cpp b/celldrawer.cpp index fc2578fd..32121c48 100644 --- a/celldrawer.cpp +++ b/celldrawer.cpp @@ -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;