aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes/RDGE/src/core/script/math/mat4.js
diff options
context:
space:
mode:
authorJohn Mayhew2012-04-03 09:39:38 -0700
committerJohn Mayhew2012-04-03 09:39:38 -0700
commitb4ba63045158e108356e065c1237fb72b56473a5 (patch)
tree727039d99f65713ea45957202984a52aa3d16731 /js/helper-classes/RDGE/src/core/script/math/mat4.js
parent1a3c7d0d5c4ee40af189459749a459990fd08b7e (diff)
downloadninja-b4ba63045158e108356e065c1237fb72b56473a5.tar.gz
fixed remaining namespace bugs ensuring the use of the RDGE namespace everywhere it is required
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/math/mat4.js')
-rwxr-xr-xjs/helper-classes/RDGE/src/core/script/math/mat4.js44
1 files changed, 22 insertions, 22 deletions
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) {
408/** 408/**
409* RDGE.mat4._det2x2 409* RDGE.mat4._det2x2
410*/ 410*/
411RDGE.mat4._det2x2 = function(a, b, c, d) { 411RDGE.mat4._det2x2 = function (a, b, c, d) {
412 return a * d - b * c; 412 return a * d - b * c;
413}; 413};
414 414
415/** 415/**
416* RDGE.mat4._det3x3 416* RDGE.mat4._det3x3
417*/ 417*/
418RDGE.mat4._det3x3 = function(a1, a2, a3, b1, b2, b3, c1, c2, c3) { 418RDGE.mat4._det3x3 = function (a1, a2, a3, b1, b2, b3, c1, c2, c3) {
419 return a1 * RDGE.mat4._det2x2(b2, b3, c2, c3) 419 return a1 * RDGE.mat4._det2x2(b2, b3, c2, c3)
420 - b1 * RDGE.mat4._det2x2(a2, a3, c2, c3) 420 - b1 * RDGE.mat4._det2x2(a2, a3, c2, c3)
421 + c1 * RDGE.mat4._det2x2(a2, a3, b2, b3); 421 + c1 * RDGE.mat4._det2x2(a2, a3, b2, b3);
422}; 422};
@@ -424,28 +424,28 @@ RDGE.mat4._det3x3 = function(a1, a2, a3, b1, b2, b3, c1, c2, c3) {
424/** 424/**
425* RDGE.mat4._det4x4 425* RDGE.mat4._det4x4
426*/ 426*/
427RDGE.mat4._det4x4 = function(m) { 427RDGE.mat4._det4x4 = function (m) {
428 var a1 = m[0]; 428 var a1 = m[0];
429 var b1 = m[1]; 429 var b1 = m[1];
430 var c1 = m[2]; 430 var c1 = m[2];
431 var d1 = m[3]; 431 var d1 = m[3];
432 432
433 var a2 = m[4]; 433 var a2 = m[4];
434 var b2 = m[5]; 434 var b2 = m[5];
435 var c2 = m[6]; 435 var c2 = m[6];
436 var d2 = m[7]; 436 var d2 = m[7];
437 437
438 var a3 = m[8]; 438 var a3 = m[8];
439 var b3 = m[9]; 439 var b3 = m[9];
440 var c3 = m[10]; 440 var c3 = m[10];
441 var d3 = m[11]; 441 var d3 = m[11];
442 442
443 var a4 = m[12]; 443 var a4 = m[12];
444 var b4 = m[13]; 444 var b4 = m[13];
445 var c4 = m[14]; 445 var c4 = m[14];
446 var d4 = m[15]; 446 var d4 = m[15];
447 447
448 return a1 * RDGE.mat4._det3x3(b2, b3, b4, c2, c3, c4, d2, d3, d4) 448 return a1 * RDGE.mat4._det3x3(b2, b3, b4, c2, c3, c4, d2, d3, d4)
449 - b1 * RDGE.mat4._det3x3(a2, a3, a4, c2, c3, c4, d2, d3, d4) 449 - b1 * RDGE.mat4._det3x3(a2, a3, a4, c2, c3, c4, d2, d3, d4)
450 + c1 * RDGE.mat4._det3x3(a2, a3, a4, b2, b3, b4, d2, d3, d4) 450 + c1 * RDGE.mat4._det3x3(a2, a3, a4, b2, b3, b4, d2, d3, d4)
451 - d1 * RDGE.mat4._det3x3(a2, a3, a4, b2, b3, b4, c2, c3, c4); 451 - d1 * RDGE.mat4._det3x3(a2, a3, a4, b2, b3, b4, c2, c3, c4);