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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user