From a851b6b645d1ed290cb3ddf859c02468928b4577 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Thu, 3 Jan 2013 17:04:31 +0100 Subject: [PATCH] Removed debugger bits. --- src/math/Matrix4.js | 2 -- src/math/Quaternion.js | 3 +-- src/math/Vector2.js | 2 -- src/math/Vector3.js | 8 -------- src/math/Vector4.js | 2 -- 5 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/math/Matrix4.js b/src/math/Matrix4.js index b8aaea42c7..3faa8c69fa 100644 --- a/src/math/Matrix4.js +++ b/src/math/Matrix4.js @@ -250,8 +250,6 @@ THREE.Matrix4.prototype = { multiply: function ( m ) { - if ( arguments.length > 1 ) debugger; - return this.multiplyMatrices( this, m ); }, diff --git a/src/math/Quaternion.js b/src/math/Quaternion.js index 29a5a46ea7..69bc3e1fff 100644 --- a/src/math/Quaternion.js +++ b/src/math/Quaternion.js @@ -233,9 +233,8 @@ THREE.Quaternion.prototype = { multiply: function ( b ) { - if ( arguments.length > 1 ) debugger; - // from http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/code/index.htm + var qax = this.x, qay = this.y, qaz = this.z, qaw = this.w, qbx = b.x, qby = b.y, qbz = b.z, qbw = b.w; diff --git a/src/math/Vector2.js b/src/math/Vector2.js index e744e58caa..f2c1f41761 100644 --- a/src/math/Vector2.js +++ b/src/math/Vector2.js @@ -77,8 +77,6 @@ THREE.Vector2.prototype = { add: function ( v ) { - if ( arguments.length > 1 ) debugger; - this.x += v.x; this.y += v.y; diff --git a/src/math/Vector3.js b/src/math/Vector3.js index 3de68944f6..dc1b07bd4e 100644 --- a/src/math/Vector3.js +++ b/src/math/Vector3.js @@ -92,8 +92,6 @@ THREE.Vector3.prototype = { add: function ( v ) { - if ( arguments.length > 1 ) debugger; - this.x += v.x; this.y += v.y; this.z += v.z; @@ -124,8 +122,6 @@ THREE.Vector3.prototype = { sub: function ( v ) { - if ( arguments.length > 1 ) debugger; - this.x -= v.x; this.y -= v.y; this.z -= v.z; @@ -146,8 +142,6 @@ THREE.Vector3.prototype = { multiply: function ( v ) { - if ( arguments.length > 1 ) debugger; - this.x *= v.x; this.y *= v.y; this.z *= v.z; @@ -414,8 +408,6 @@ THREE.Vector3.prototype = { cross: function ( v ) { - if ( arguments.length > 1 ) debugger; - var x = this.x, y = this.y, z = this.z; this.x = y * v.z - z * v.y; diff --git a/src/math/Vector4.js b/src/math/Vector4.js index 7b5afc7249..c9e0eafae3 100644 --- a/src/math/Vector4.js +++ b/src/math/Vector4.js @@ -103,8 +103,6 @@ THREE.Vector4.prototype = { add: function ( v ) { - if ( arguments.length > 1 ) debugger; - this.x += v.x; this.y += v.y; this.z += v.z; -- GitLab