Browse Source

Change containsPoint return statement accordingly to mrdoob request

Tristan VALCKE 8 years ago
parent
commit
fcf6239e0b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/math/Box3.js

+ 1 - 1
src/math/Box3.js

@@ -244,7 +244,7 @@ Box3.prototype = {
 
 	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;
 
 	},