mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
fixed Goldberg construction
This commit is contained in:
parent
622b683e33
commit
a08b67d780
@ -529,11 +529,13 @@ EX namespace gp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
transmatrix dir_matrix(int i) {
|
transmatrix dir_matrix(int i) {
|
||||||
cell cc; cc.type = S7;
|
auto ddspin = [] (int d) -> transmatrix {
|
||||||
|
return spin(M_PI - d * 2 * M_PI / S7 - cgi.hexshift);
|
||||||
|
};
|
||||||
return spin(-cgi.gpdata->alpha) * build_matrix(
|
return spin(-cgi.gpdata->alpha) * build_matrix(
|
||||||
C0,
|
C0,
|
||||||
ddspin(&cc, i) * xpush0(cgi.tessf),
|
ddspin(i) * xpush0(cgi.tessf),
|
||||||
ddspin(&cc, i+1) * xpush0(cgi.tessf),
|
ddspin(i+1) * xpush0(cgi.tessf),
|
||||||
C03
|
C03
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user