Browse Source

Ray: Fix precission issue. See #5774.

Mr.doob 10 years ago
parent
commit
976f78bb5e
1 changed files with 1 additions and 1 deletions
  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.