1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-02-05 17:30:16 +00:00

some more DIM->WDIM/GDIM fixes

This commit is contained in:
Zeno Rogue
2019-05-08 20:16:10 +02:00
parent f8247073e7
commit aa8d4965e4
2 changed files with 7 additions and 7 deletions

View File

@@ -579,9 +579,9 @@ namespace binary {
// on which horocycle are we
ld horo_level(hyperpoint h) {
using namespace hyperpoint_vec;
h /= (1 + h[DIM]);
h /= (1 + h[GDIM]);
h[0] -= 1;
h /= sqhypot_d(DIM, h);
h /= sqhypot_d(GDIM, h);
h[0] += .5;
return log(2) + log(-h[0]);
}
@@ -764,7 +764,7 @@ void virtualRebaseSimple(heptagon*& base, transmatrix& at) {
while(true) {
double currz = at[DIM][DIM];
double currz = at[GDIM][GDIM];
heptagon *h = base;
@@ -774,7 +774,7 @@ void virtualRebaseSimple(heptagon*& base, transmatrix& at) {
for(int d=0; d<S7; d++) {
transmatrix V2 = itmatrix(h, d) * at;
double newz = V2[DIM][DIM];
double newz = V2[GDIM][GDIM];
if(newz < currz) {
currz = newz;
bestV = V2;