1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-18 07:27:40 +00:00

fieldpattern:: an option to use 'quotient group' fieldpatterns in 3D for more efficient representation

This commit is contained in:
Zeno Rogue
2021-05-20 22:59:24 +02:00
parent aea74df731
commit 20771ddae4
2 changed files with 76 additions and 4 deletions

View File

@@ -386,7 +386,7 @@ EX namespace reg3 {
tmatrices[a].resize(S7);
for(int b=0; b<S7; b++) {
int k = lgr*a;
k = f->gmul(f->gmul(k, moveid[b]), lgr);
k = f->matcode[ f->mmul(f->mmul(f->matrices[k], f->matrices[moveid[b]]), f->P) ];
for(int l=0; l<lgr; l++) if(f->gmul(k, l) % lgr == 0) {
tmatrices[a][b] = cgi.adjmoves[b] * f->fullv[l];
allh[a]->c.connect(b, allh[k/lgr], movedir[l], false);