Преглед изворни кода

Change containsPoint return statement accordingly to mrdoob request

Tristan VALCKE пре 9 година
родитељ
комит
fcf6239e0b
1 измењених фајлова са 1 додато и 1 уклоњено
  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号