Răsfoiți Sursa

fixed return value bug

Teseo Schneider 6 ani în urmă
părinte
comite
70ec447489
1 a modificat fișierele cu 3 adăugiri și 3 ștergeri
  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;
 };