1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-29 19:40:35 +00:00

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

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