relative_matrix and adj changed

This commit is contained in:
Zeno Rogue committed 2019-11-30 18:05:23 +01:00
1 parent f3beb9d2ac
commit 7e8ede4bd6
13 files changed
+61 -59

No files matched your search

+3 -1
View File
@@ -709,8 +709,10 @@ EX namespace euclid3 {
return eupush3(v[0], v[1], v[2]);
}
transmatrix relative_matrix(heptagon *h2, heptagon *h1) override {
transmatrix relative_matrix(heptagon *h2, heptagon *h1, const hyperpoint& hint) override {
if(twisted) {
if(h1 == h2) return Id;
for(int s=0; s<S7; s++) if(h2 == h1->move(s)) return adj(h1, s);
coord c1 = ispacemap[h1];
coord c2 = ispacemap[h2];
transmatrix T = warppush(c2 - c1);