mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-04 13:19:20 +00:00
dual_angle now also matrix
This commit is contained in:
parent
67d38feabd
commit
beb679ccab
@ -3023,7 +3023,8 @@ EX int config3 = addHook(hooks_configfile, 100, [] {
|
||||
param_f(linepatterns::meridian_prec2, "meridian_prec2");
|
||||
|
||||
param_f(linepatterns::dual_length, "dual_length");
|
||||
param_f(linepatterns::dual_angle, "dual_angle");
|
||||
param_matrix(linepatterns::dual_angle.v2, "dual_angle", 2);
|
||||
param_matrix(linepatterns::dual_angle.v3, "dual_angle3", 3);
|
||||
|
||||
param_f(twopoint_xscale, "twopoint_xscale");
|
||||
param_i(twopoint_xshape, "twopoint_xshape");
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user