提交 2132c4b8 编写于 作者: M Mr.doob

Box*: Code prettiness.

上级 9d9e7d0a
......@@ -4,7 +4,7 @@
THREE.Box2 = function ( min, max ) {
this.min = ( min !== undefined ) ? min : new THREE.Vector2( Infinity, Infinity );
this.min = ( min !== undefined ) ? min : new THREE.Vector2( + Infinity, + Infinity );
this.max = ( max !== undefined ) ? max : new THREE.Vector2( - Infinity, - Infinity );
};
......@@ -69,7 +69,7 @@ THREE.Box2.prototype = {
makeEmpty: function () {
this.min.x = this.min.y = Infinity;
this.min.x = this.min.y = + Infinity;
this.max.x = this.max.y = - Infinity;
return this;
......
......@@ -5,7 +5,7 @@
THREE.Box3 = function ( min, max ) {
this.min = ( min !== undefined ) ? min : new THREE.Vector3( Infinity, Infinity, Infinity );
this.min = ( min !== undefined ) ? min : new THREE.Vector3( + Infinity, + Infinity, + Infinity );
this.max = ( max !== undefined ) ? max : new THREE.Vector3( - Infinity, - Infinity, - Infinity );
};
......@@ -147,7 +147,7 @@ THREE.Box3.prototype = {
makeEmpty: function () {
this.min.x = this.min.y = this.min.z = Infinity;
this.min.x = this.min.y = this.min.z = + Infinity;
this.max.x = this.max.y = this.max.z = - Infinity;
return this;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册