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

optimized inverses

This commit is contained in:
Zeno Rogue
2020-09-16 05:57:05 +02:00
parent cea3da31fc
commit e26f8f5a5b
16 changed files with 138 additions and 85 deletions

View File

@@ -625,7 +625,7 @@ struct hrmap_archimedean : hrmap {
dynamicval<hrmap*> cm(currentmap, current_altmap);
U = T;
current_altmap->virtualRebase(alt, T);
U = U * inverse(T);
U = U * iso_inverse(T);
}
if(euclid) {
@@ -725,7 +725,7 @@ struct hrmap_archimedean : hrmap {
h1 = h1->move(0);
}
else {
where = inverse(cof.adjcell_matrix(h2, 0)) * where;
where = iso_inverse(cof.adjcell_matrix(h2, 0)) * where;
h2 = h2->move(0);
}
}