From 719aab3fb58b7c6162b2370d13cef39302580c7a Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 27 Mar 2022 15:30:22 +0200 Subject: [PATCH] fixed the orientation of two-point azimuthal and two-point hybrid --- hypgraph.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index 3a4dd281..c0aa08b4 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -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; }