File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 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.
5
5
6
6
var hasFloat32Array = ( typeof Float32Array != 'undefined' ) ;
7
7
8
8
// ### new GL.Matrix([elements])
9
9
//
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.
13
13
function Matrix ( ) {
14
14
var m = Array . prototype . concat . apply ( [ ] , arguments ) ;
15
15
if ( ! m . length ) {
You can’t perform that action at this time.
0 commit comments