Ver Fonte

Small fix

Ioannis Agtzidis há 5 anos atrás
pai
commit
e21e5a09ef
1 ficheiros alterados com 1 adições e 0 exclusões
  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);