adjusting for 3D part II

This commit is contained in:
? authored and Zeno Rogue committed 2019-09-12 22:38:39 +02:00
1 parent aa3e14549e
commit 56d628d4d8
9 files changed
+188 -146

No files matched your search

+7 -3
View File
@@ -362,7 +362,11 @@ void virtualRebase(cell*& base, transmatrix& at, bool tohex) {
void virtualRebase(cell*& base, hyperpoint& h, bool tohex) {
// we perform fixing in check, so that it works with larger range
virtualRebase(base, h, tohex, [] (const hyperpoint& h) { return hyperbolic ? hpxy(h[0], h[1] DC(,h[2])) :h; });
virtualRebase(base, h, tohex, [] (const hyperpoint& h) {
if(hyperbolic && DIM == 2) return hpxy(h[0], h[1]);
if(hyperbolic && DIM == 3) return hpxy3(h[0], h[1], h[2]);
return h;
});
}
// works only in geometries similar to the standard one, and only on heptagons
@@ -436,8 +440,8 @@ hyperpoint randomPointIn(int t) {
}
#if CAP_BT
hyperpoint get_horopoint(ld y, ld x DC(,ld z)) {
return xpush(-y) * binary::parabolic(x,z) * C0;
hyperpoint get_horopoint(ld y, ld x) {
return xpush(-y) * binary::parabolic(x) * C0;
}
#endif