1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-08-29 16:57:56 +00:00

fake for GP(1,1) in S3==4

This commit is contained in:
Zeno Rogue
2024-06-21 18:34:37 +02:00
parent 4811cdd183
commit 5b55da3090
3 changed files with 16 additions and 6 deletions

View File

@@ -92,6 +92,10 @@ EX namespace fake {
hyperpoint get_corner(cell *c, int cid, ld cf=3) override {
if(GOLDBERG && S3 == 4 && gp::param.first == 1 && gp::param.second == 1) {
return ddspin(c, cid) * spin(-M_PI / c->type) * lxpush0((c == c->master->c7 ? cgi.hexf : cgi.hexvdist) * 3 / cf);
}
if(embedded_plane) {
geom3::light_flip(true);
hyperpoint h = get_corner(c, cid, cf);
@@ -113,6 +117,10 @@ EX namespace fake {
}
transmatrix adj(cell *c, int d) override {
if(GOLDBERG && S3 == 4 && gp::param.first == 1 && gp::param.second == 1) {
c->cmove(d);
return ddspin(c, d) * lxpush(cgi.crossf) * iddspin(c->move(d), c->c.spin(d), M_PI);
}
if(embedded_plane) {
geom3::light_flip(true);
transmatrix T = adj(c, d);