浏览代码

Merge pull request #10993 from Mugen87/dev

Box2: Correct comment
Mr.doob 8 年之前
父节点
当前提交
08e9b1cac7
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/math/Box2.js

+ 2 - 1
src/math/Box2.js

@@ -155,7 +155,8 @@ Object.assign( Box2.prototype, {
 
 
 	intersectsBox: function ( box ) {
 	intersectsBox: function ( box ) {
 
 
-		// using 6 splitting planes to rule out intersections.
+		// using 4 splitting planes to rule out intersections
+
 		return box.max.x < this.min.x || box.min.x > this.max.x ||
 		return box.max.x < this.min.x || box.min.x > this.max.x ||
 			box.max.y < this.min.y || box.min.y > this.max.y ? false : true;
 			box.max.y < this.min.y || box.min.y > this.max.y ? false : true;