瀏覽代碼

Small fix

Ioannis Agtzidis 5 年之前
父節點
當前提交
e21e5a09ef
共有 1 個文件被更改,包括 1 次插入0 次删除
  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);