From 648ee61ae84216d0236e0dbc211addc13b2cfa3a Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Fri, 6 Jul 2012 11:52:06 -0700 Subject: Expand tabs --- js/helper-classes/RDGE/src/core/script/box.js | 64 +++++++++++++-------------- 1 file changed, 32 insertions(+), 32 deletions(-) (limited to 'js/helper-classes/RDGE/src/core/script/box.js') diff --git a/js/helper-classes/RDGE/src/core/script/box.js b/js/helper-classes/RDGE/src/core/script/box.js index d33907a0..441ef6cf 100755 --- a/js/helper-classes/RDGE/src/core/script/box.js +++ b/js/helper-classes/RDGE/src/core/script/box.js @@ -115,48 +115,48 @@ RDGE.box.prototype.transform = function (mat) { /* RDGE.box.prototype.transform = function(mat) { - var newBox = new RDGE.box(); - var e, f; + var newBox = new RDGE.box(); + var e, f; - newBox.b[0] = mat[12]; newBox.b[1] = mat[13]; newBox.b[2] = mat[14]; - newBox.t[0] = mat[12]; newBox.t[1] = mat[13]; newBox.t[2] = mat[14]; + newBox.b[0] = mat[12]; newBox.b[1] = mat[13]; newBox.b[2] = mat[14]; + newBox.t[0] = mat[12]; newBox.t[1] = mat[13]; newBox.t[2] = mat[14]; - e = mat[0] * this.min[0]; f = mat[0] * this.max[0]; - newBox.b[0] += (e < f) ? e : f; - newBox.t[0] += (e < f) ? f : e; + e = mat[0] * this.min[0]; f = mat[0] * this.max[0]; + newBox.b[0] += (e < f) ? e : f; + newBox.t[0] += (e < f) ? f : e; - e = mat[4] * this.min[1]; f = mat[4] * this.max[1]; - newBox.b[0] += (e < f) ? e : f; - newBox.t[0] += (e < f) ? f : e; + e = mat[4] * this.min[1]; f = mat[4] * this.max[1]; + newBox.b[0] += (e < f) ? e : f; + newBox.t[0] += (e < f) ? f : e; - e = mat[8] * this.min[2]; f = mat[8] * this.max[2]; - newBox.b[0] += (e < f) ? e : f; - newBox.t[0] += (e < f) ? f : e; + e = mat[8] * this.min[2]; f = mat[8] * this.max[2]; + newBox.b[0] += (e < f) ? e : f; + newBox.t[0] += (e < f) ? f : e; - e = mat[1] * this.min[0]; f = mat[1] * this.max[0]; - newBox.b[1] += (e < f) ? e : f; - newBox.t[1] += (e < f) ? f : e; + e = mat[1] * this.min[0]; f = mat[1] * this.max[0]; + newBox.b[1] += (e < f) ? e : f; + newBox.t[1] += (e < f) ? f : e; - e = mat[5] * this.min[1]; f = mat[5] * this.max[1]; - newBox.b[1] += (e < f) ? e : f; - newBox.t[1] += (e < f) ? f : e; + e = mat[5] * this.min[1]; f = mat[5] * this.max[1]; + newBox.b[1] += (e < f) ? e : f; + newBox.t[1] += (e < f) ? f : e; - e = mat[9] * this.min[2]; f = mat[9] * this.max[2]; - newBox.b[1] += (e < f) ? e : f; - newBox.t[1] += (e < f) ? f : e; + e = mat[9] * this.min[2]; f = mat[9] * this.max[2]; + newBox.b[1] += (e < f) ? e : f; + newBox.t[1] += (e < f) ? f : e; - e = mat[2] * this.min[0]; f = mat[2] * this.max[0]; - newBox.b[2] += (e < f) ? e : f; - newBox.t[2] += (e < f) ? f : e; + e = mat[2] * this.min[0]; f = mat[2] * this.max[0]; + newBox.b[2] += (e < f) ? e : f; + newBox.t[2] += (e < f) ? f : e; - e = mat[6] * this.min[1]; f = mat[6] * this.max[1]; - newBox.b[2] += (e < f) ? e : f; - newBox.t[2] += (e < f) ? f : e; + e = mat[6] * this.min[1]; f = mat[6] * this.max[1]; + newBox.b[2] += (e < f) ? e : f; + newBox.t[2] += (e < f) ? f : e; - e = mat[10] * this.min[2]; f = mat[10] * this.max[2]; - newBox.b[2] += (e < f) ? e : f; - newBox.t[2] += (e < f) ? f : e; + e = mat[10] * this.min[2]; f = mat[10] * this.max[2]; + newBox.b[2] += (e < f) ? e : f; + newBox.t[2] += (e < f) ? f : e; - return newBox; + return newBox; }; */ -- cgit v1.2.3