1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-20 08:27:39 +00:00

function 'relative_matrix_recursive' for reg3_rule and arbi

This commit is contained in:
Zeno Rogue
2020-01-28 11:22:49 +01:00
parent 370cdafaf8
commit 3df5eff7f8
3 changed files with 32 additions and 30 deletions

View File

@@ -1115,10 +1115,7 @@ EX namespace reg3 {
}
transmatrix relative_matrix(heptagon *h2, heptagon *h1, const hyperpoint& hint) override {
if(gmatrix0.count(h2->c7) && gmatrix0.count(h1->c7))
return inverse(gmatrix0[h1->c7]) * gmatrix0[h2->c7];
println(hlog, "unknown");
return Id;
return relative_matrix_recursive(h2, h1);
}
vector<hyperpoint> get_vertices(cell* c) override {