1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-06 20:37:56 +00:00

functions with rotation parameters in S84-degree system have been removed or replaced in radian versions

This commit is contained in:
Zeno Rogue
2018-08-19 15:52:39 +02:00
parent 5384ce3274
commit 453c06f9f9
10 changed files with 95 additions and 121 deletions

View File

@@ -74,24 +74,24 @@ namespace hr { namespace netgen {
hcenter[ii][MAX_EDGE] = V * C0;
if(c->type == 7) {
if(c->type == S7) {
for(int i=0; i<c->type; i++) {
int hdir = displaydir(c, i) + 6;
int hdir = displayspin(c, i) + M_PI / S7;
transmatrix V2 = V * spin(hdir * M_PI / 42) * xpush(hexf);
transmatrix V2 = V * spin(hdir) * xpush(hexf);
hcenter[ii][i] = V2 * C0;
}
}
if(c->type == 6) {
if(c->type == S6) {
for(int i=0; i<c->type; i++) {
int hdir = displaydir(c, i);
int hdir = displayspin(c, i);
transmatrix V2 =
V * spin(hdir * M_PI / 42) * xpush(crossf) * spin(M_PI*8/7) * xpush(hexf);
V * spin(hdir) * xpush(crossf) * spin(M_PI+M_PI/S7) * xpush(hexf);
hcenter[ii][i] = V2 * C0;
}