Browse Source

Fix inaccurate comments in Matrix4

These weren't really correct, since Matrix4 elements are stored in
column-major order.
Marshall Quander 7 years ago
parent
commit
c11662b22f
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/math/Matrix4.js

+ 4 - 4
src/math/Matrix4.js

@@ -263,12 +263,12 @@ Object.assign( Matrix4.prototype, {
 
 		}
 
-		// last column
+		// bottom row
 		te[ 3 ] = 0;
 		te[ 7 ] = 0;
 		te[ 11 ] = 0;
 
-		// bottom row
+		// last column
 		te[ 12 ] = 0;
 		te[ 13 ] = 0;
 		te[ 14 ] = 0;
@@ -752,12 +752,12 @@ Object.assign( Matrix4.prototype, {
 		te[ 6 ] = ( yz + wx ) * sy;
 		te[ 10 ] = ( 1 - ( xx + yy ) ) * sz;
 
-		// last column
+		// bottom row
 		te[ 3 ] = 0;
 		te[ 7 ] = 0;
 		te[ 11 ] = 0;
 
-		// bottom row
+		// last column
 		te[ 12 ] = position.x;
 		te[ 13 ] = position.y;
 		te[ 14 ] = position.z;