mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-11-26 08:07:10 +00:00
3d:: Euclidean tori
This commit is contained in:
1 parent
2e1f63e086
commit
c0145c0d9c
8 files changed
+282
-19
No files matched your search
@@ -1189,6 +1189,8 @@ void optimizeview() {
|
||||
int i1 = i * DUALMUL;
|
||||
heptagon *h2 = createStep(viewctr.at, i1);
|
||||
transmatrix T = currentmap->relative_matrix(h2, viewctr.at);
|
||||
if(euclid && DIM == 3)
|
||||
T = euclid3::move_matrix(i);
|
||||
hyperpoint H = View * tC0(T);
|
||||
ld quality = hdist0(H);
|
||||
if(quality < best) best = quality, turn = i1, TB = T;
|
||||
|
||||
Reference in new issue
Block a user