From b4ba63045158e108356e065c1237fb72b56473a5 Mon Sep 17 00:00:00 2001 From: John Mayhew Date: Tue, 3 Apr 2012 09:39:38 -0700 Subject: fixed remaining namespace bugs ensuring the use of the RDGE namespace everywhere it is required --- .../RDGE/src/core/script/math/mat4.js | 44 +++++++++++----------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'js/helper-classes/RDGE/src/core/script/math/mat4.js') diff --git a/js/helper-classes/RDGE/src/core/script/math/mat4.js b/js/helper-classes/RDGE/src/core/script/math/mat4.js index 226b771a..239c646a 100755 --- a/js/helper-classes/RDGE/src/core/script/math/mat4.js +++ b/js/helper-classes/RDGE/src/core/script/math/mat4.js @@ -408,15 +408,15 @@ RDGE.mat4.mul4x3 = function (a, b) { /** * RDGE.mat4._det2x2 */ -RDGE.mat4._det2x2 = function(a, b, c, d) { - return a * d - b * c; +RDGE.mat4._det2x2 = function (a, b, c, d) { + return a * d - b * c; }; /** * RDGE.mat4._det3x3 */ -RDGE.mat4._det3x3 = function(a1, a2, a3, b1, b2, b3, c1, c2, c3) { - return a1 * RDGE.mat4._det2x2(b2, b3, c2, c3) +RDGE.mat4._det3x3 = function (a1, a2, a3, b1, b2, b3, c1, c2, c3) { + return a1 * RDGE.mat4._det2x2(b2, b3, c2, c3) - b1 * RDGE.mat4._det2x2(a2, a3, c2, c3) + c1 * RDGE.mat4._det2x2(a2, a3, b2, b3); }; @@ -424,28 +424,28 @@ RDGE.mat4._det3x3 = function(a1, a2, a3, b1, b2, b3, c1, c2, c3) { /** * RDGE.mat4._det4x4 */ -RDGE.mat4._det4x4 = function(m) { - var a1 = m[0]; - var b1 = m[1]; - var c1 = m[2]; - var d1 = m[3]; +RDGE.mat4._det4x4 = function (m) { + var a1 = m[0]; + var b1 = m[1]; + var c1 = m[2]; + var d1 = m[3]; - var a2 = m[4]; - var b2 = m[5]; - var c2 = m[6]; - var d2 = m[7]; + var a2 = m[4]; + var b2 = m[5]; + var c2 = m[6]; + var d2 = m[7]; - var a3 = m[8]; - var b3 = m[9]; - var c3 = m[10]; - var d3 = m[11]; + var a3 = m[8]; + var b3 = m[9]; + var c3 = m[10]; + var d3 = m[11]; - var a4 = m[12]; - var b4 = m[13]; - var c4 = m[14]; - var d4 = m[15]; + var a4 = m[12]; + var b4 = m[13]; + var c4 = m[14]; + var d4 = m[15]; - return a1 * RDGE.mat4._det3x3(b2, b3, b4, c2, c3, c4, d2, d3, d4) + return a1 * RDGE.mat4._det3x3(b2, b3, b4, c2, c3, c4, d2, d3, d4) - b1 * RDGE.mat4._det3x3(a2, a3, a4, c2, c3, c4, d2, d3, d4) + c1 * RDGE.mat4._det3x3(a2, a3, a4, b2, b3, b4, d2, d3, d4) - d1 * RDGE.mat4._det3x3(a2, a3, a4, b2, b3, b4, c2, c3, c4); -- cgit v1.2.3