From 2132c4b85d1fe626ba2199e641982bbfb7ec7c76 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Sat, 16 Jan 2016 09:05:57 +0000 Subject: [PATCH] Box*: Code prettiness. --- src/math/Box2.js | 4 ++-- src/math/Box3.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/math/Box2.js b/src/math/Box2.js index 4e93c616b2..65f6ebe310 100644 --- a/src/math/Box2.js +++ b/src/math/Box2.js @@ -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; diff --git a/src/math/Box3.js b/src/math/Box3.js index 117aaf01c9..ed9208ddf0 100644 --- a/src/math/Box3.js +++ b/src/math/Box3.js @@ -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; -- GitLab