1
0
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:
Zeno Rogue 2019-11-25 22:08:43 +01:00
parent 622b683e33
commit a08b67d780

View File

@ -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
); );
} }