fixed the orientation of two-point azimuthal and two-point hybrid

This commit is contained in:
Zeno Rogue 2022-03-27 15:30:22 +02:00
parent a6338d3c49
commit 719aab3fb5
1 changed files with 4 additions and 2 deletions

View File

@ -884,8 +884,10 @@ EX void apply_other_model(shiftpoint H_orig, hyperpoint& ret, eModel md) {
ret[1] = (ret[0] + pconf.twopoint_param) * lyx;
ret[2] = 0;
ret[0] = -ret[0]; ret[1] = -ret[1];
move_y_to_z(ret, yz);
models::apply_orientation(ret[0], ret[1]);
models::apply_orientation(ret[1], ret[0]);
models::apply_orientation_yz(ret[2], ret[1]);
break;
}
@ -898,7 +900,7 @@ EX void apply_other_model(shiftpoint H_orig, hyperpoint& ret, eModel md) {
ret = compute_hybrid(H, whateveri[0]);
move_y_to_z(ret, yz);
models::apply_orientation(ret[0], ret[1]);
models::apply_orientation(ret[1], ret[0]);
models::apply_orientation_yz(ret[2], ret[1]);
break;
}