Explorar el Código

fixed return value bug

Teseo Schneider hace 6 años
padre
commit
70ec447489
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      include/igl/segment_segment_intersect.cpp

+ 3 - 3
include/igl/segment_segment_intersect.cpp

@@ -53,12 +53,12 @@ IGL_INLINE bool igl::segments_intersect(
     t = t1.norm() / rxs.norm();
     t = t * sign;
 
-	if ((t - 1.) > eps || t < -eps)
-        return false;
-
     a_t = t;
     a_u = u;
 
+	if ((t - 1.) > eps || t < -eps)
+        return false;
+
     return true;
 };