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

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

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