Skip to content

Commit 483aab4

Browse files
committed
added row-major order to matrix comments
1 parent 4fa7d06 commit 483aab4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/matrix.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
// Represents a 4x4 matrix using Float32Arrays when available. Matrix
2-
// operations can either be done using convenient methods that return a new
3-
// matrix for the result, or optimized methods that store the result in an
4-
// existing matrix to avoid generating garbage.
1+
// Represents a 4x4 matrix stored in row-major order that uses Float32Arrays
2+
// when available. Matrix operations can either be done using convenient
3+
// methods that return a new matrix for the result or optimized methods
4+
// that store the result in an existing matrix to avoid generating garbage.
55

66
var hasFloat32Array = (typeof Float32Array != 'undefined');
77

88
// ### new GL.Matrix([elements])
99
//
10-
// This constructor takes 16 arguments, which can be passed individually, as
11-
// a list, or even as four lists, one for each row. If the arguments are
12-
// omitted then the identity matrix is constructed instead.
10+
// This constructor takes 16 arguments in row-major order, which can be passed
11+
// individually, as a list, or even as four lists, one for each row. If the
12+
// arguments are omitted then the identity matrix is constructed instead.
1313
function Matrix() {
1414
var m = Array.prototype.concat.apply([], arguments);
1515
if (!m.length) {

0 commit comments

Comments
 (0)