Parcourir la source

Change containsPoint return statement accordingly to mrdoob request

Tristan VALCKE il y a 9 ans
Parent
commit
fcf6239e0b
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/math/Box3.js

+ 1 - 1
src/math/Box3.js

@@ -244,7 +244,7 @@ Box3.prototype = {
 
 
 	containsPoint: function ( point ) {
 	containsPoint: function ( point ) {
 
 
-		return !(point.x < this.min.x || point.x > this.max.x || point.y < this.min.y || point.y > this.max.y || point.z < this.min.z || point.z > this.max.z);
+		return ( point.x < this.min.x || point.x > this.max.x || point.y < this.min.y || point.y > this.max.y || point.z < this.min.z || point.z > this.max.z ) === false;
 
 
 	},
 	},
 
 

粤ICP备19079148号