Browse Source

Ray: Fix precission issue. See #5774.

Mr.doob 11 năm trước cách đây
mục cha
commit
976f78bb5e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/math/Ray.js

+ 1 - 1
src/math/Ray.js

@@ -113,7 +113,7 @@ THREE.Ray.prototype = {
 		var det = Math.abs( 1 - a01 * a01 );
 		var s0, s1, sqrDist, extDet;
 
-		if ( det >= 0 ) {
+		if ( det > 0 ) {
 
 			// The ray and segment are not parallel.