diff options
Diffstat (limited to 'js/helper-classes/RDGE/src/core/script/math')
-rwxr-xr-x | js/helper-classes/RDGE/src/core/script/math/mat4.js | 44 |
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 | */ |
411 | RDGE.mat4._det2x2 = function(a, b, c, d) { | 411 | RDGE.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 | */ |
418 | RDGE.mat4._det3x3 = function(a1, a2, a3, b1, b2, b3, c1, c2, c3) { | 418 | RDGE.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 | */ |
427 | RDGE.mat4._det4x4 = function(m) { | 427 | RDGE.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); |