提交 08e9b1ca 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #10993 from Mugen87/dev

Box2: Correct comment
...@@ -155,7 +155,8 @@ Object.assign( Box2.prototype, { ...@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册