Browse Source

Small fix

Ioannis Agtzidis 5 years ago
parent
commit
e21e5a09ef
1 changed files with 1 additions and 0 deletions
  1. 1 0
      YZXrotation.m

+ 1 - 0
YZXrotation.m

@@ -8,6 +8,7 @@ function rot = YZXrotation(vec, tiltRads)
     psi = 0;
     if (abs(theta) < pi/2 - 0.01)
         psi = atan2(vec(3), vec(1));
+    end
 
     rot = zeros(3);
     rot(1,1) = cos(theta)*cos(psi);