From 55e861bf94e61b1a4dc5ba13a56f6cacf9953557 Mon Sep 17 00:00:00 2001
From: Achilles Kappis <axilleaz@protonmail.com>
Date: Tue, 26 Mar 2024 14:09:07 +0000
Subject: [PATCH] Fixed rotation bug for UCA

---
 Utilities/Geometries/rcvGeo.m | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/Utilities/Geometries/rcvGeo.m b/Utilities/Geometries/rcvGeo.m
index 62874ce..e8fbc59 100644
--- a/Utilities/Geometries/rcvGeo.m
+++ b/Utilities/Geometries/rcvGeo.m
@@ -392,8 +392,7 @@ function [omniPos, fig8Pos, triPos, boxPos, box2DPos, tetPos, fig8Vec, triangleV
                 
                 % Rotate and position tetrahedrals
                 for measPosIdx = numel(az):-1:1
-                    % tetPos(measPosIdx, :, :) = omniPos(measPosIdx, :) + tempPos * rotMat3d(0, 0, -az(measPosIdx) + pi);
-                    tetPos(measPosIdx, :, :) = omniPos(measPosIdx, :) + tempPos * rotMat3d(0, 0, -az(measPosIdx));
+                    tetPos(measPosIdx, :, :) = omniPos(measPosIdx, :) + tempPos * rotMat3dDeg(0, 0, -az(measPosIdx));
                 end
             case "single"
                 tetPos = omniPos + tempPos * rotMat3dDeg(30, 30, 0);
-- 
GitLab