removed #define ALPHA from hyper.h

This commit is contained in:
Zeno Rogue 2019-12-14 12:18:24 +01:00
parent be5be7e59f
commit 3f0e8851ae
4 changed files with 4 additions and 3 deletions

View File

@ -421,6 +421,8 @@ void geometry_information::prepare_basics() {
hexshift = 0;
ld ALPHA = 2 * M_PI / S7;
ld fmin, fmax;
if(arcm::in() && !prod)

View File

@ -109,7 +109,6 @@ void addMessage(string s, char spamtype = 0);
#define cginf ginf[geometry]
#define ALPHA (M_PI*2/S7)
#define S7 cginf.sides
#define S3 cginf.vertex
#define hyperbolic_37 (S7 == 7 && S3 == 3 && !bt::in() && !arcm::in())

View File

@ -520,7 +520,7 @@ bool step(int delta) {
ld dist = cgi.hcrossf / 2;
ld dists[8];
for(int i=0; i<S7; i++) {
dists[i] = hdist(s.p, xspinpush0(cgi.hexshift - i * ALPHA, -cgi.hcrossf));
dists[i] = hdist(s.p, xspinpush0(cgi.hexshift - i * 2 * M_PI / S7, -cgi.hcrossf));
if(dists[i] < dist)
d = i, dist = dists[i];
}

View File

@ -2628,7 +2628,7 @@ EX namespace linepatterns {
if(pseudohept(c) && (p/4 == 10 || p/4 == 8))
for(int i=0; i<S7; i++) if(c->move(i) && emeraldval(c->move(i)) == p-4) {
gridlinef(V, C0, tC0(cgi.heptmove[i]), col, 2 + vid.linequality);
gridlinef(V, C0, xspinpush0(-i * ALPHA, -hdist/2), col, 2 + vid.linequality);
gridlinef(V, C0, xspinpush0(-i * 2 * M_PI / S7, -hdist/2), col, 2 + vid.linequality);
}
}
break;