We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a86e84 commit 9576350Copy full SHA for 9576350
Libraries/Utilities/MatrixMath.js
@@ -640,7 +640,7 @@ const MatrixMath = {
640
// Now get scale and shear.
641
// 'row' is a 3 element array of 3 component vectors
642
const row = [];
643
- for (i = 0; i < 3; i++) {
+ for (let i = 0; i < 3; i++) {
644
row[i] = [matrix[i][0], matrix[i][1], matrix[i][2]];
645
}
646
@@ -678,7 +678,7 @@ const MatrixMath = {
678
// is -1, then negate the matrix and the scaling factors.
679
const pdum3 = MatrixMath.v3Cross(row[1], row[2]);
680
if (MatrixMath.v3Dot(row[0], pdum3) < 0) {
681
682
scale[i] *= -1;
683
row[i][0] *= -1;
684
row[i][1] *= -1;
0 commit comments