1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-26 19:37:40 +00:00

dual_angle now also matrix

This commit is contained in:
Zeno Rogue
2023-08-14 18:11:48 +02:00
parent 67d38feabd
commit beb679ccab
2 changed files with 5 additions and 4 deletions

View File

@@ -2680,14 +2680,14 @@ EX namespace linepatterns {
}
EX ld dual_length = 0;
EX ld dual_angle = 0;
EX trans23 dual_angle;
hyperpoint dualpoint(cell *c) {
if(!aperiodic) return tile_center();
if(dual_length && c->master->c7 == c)
return MirrorX * xspinpush0(dual_angle * degree, dual_length);
return MirrorX * dual_angle.get() * xpush0(dual_length);
if(dual_length)
return xspinpush0(dual_angle * degree, dual_length);
return dual_angle.get() * xpush0(dual_length);
return tile_center();
}