Transform:setMatrix
Directly sets the Transform's internal 4x4 transformation matrix.
transform = Transform:setMatrix( e1_1, e1_2, e1_3, e1_4, e2_1, e2_2, e2_3, e2_4, e3_1, e3_2, e3_3, e3_4, e4_1, e4_2, e4_3, e4_4 )
e1_1 number The first column of the first row of the matrix.
e1_2 number The second column of the first row of the matrix.
e1_3 number The third column of the first row of the matrix.
e1_4 number The fourth column of the first row of the matrix.
e2_1 number The first column of the second row of the matrix.
e2_2 number The second column of the second row of the matrix.
e2_3 number The third column of the second row of the matrix.
e2_4 number The fourth column of the second row of the matrix.
e3_1 number The first column of the third row of the matrix.
e3_2 number The second column of the third row of the matrix.
e3_3 number The third column of the third row of the matrix.
e3_4 number The fourth column of the third row of the matrix.
e4_1 number The first column of the fourth row of the matrix.
e4_2 number The second column of the fourth row of the matrix.
e4_3 number The third column of the fourth row of the matrix.
e4_4 number The fourth column of the fourth row of the matrix.
transform Transform The Transform object the method was called on. Allows easily chaining Transform methods.
transform = Transform:setMatrix( layout, e1_1, e1_2, e1_3, e1_4, e2_1, e2_2, e2_3, e2_4, e3_1, e3_2, e3_3, e3_4, e4_1, e4_2, e4_3, e4_4 )
layout MatrixLayout How to interpret the matrix element arguments (row-major or column-major).
e1_1 number The first column of the first row of the matrix.
e1_2 number The second column of the first row or the first column of the second row of the matrix, depending on the specified layout.
e1_3 number The third column/row of the first row/column of the matrix.
e1_4 number The fourth column/row of the first row/column of the matrix.
e2_1 number The first column/row of the second row/column of the matrix.
e2_2 number The second column/row of the second row/column of the matrix.
e2_3 number The third column/row of the second row/column of the matrix.
e2_4 number The fourth column/row of the second row/column of the matrix.
e3_1 number The first column/row of the third row/column of the matrix.
e3_2 number The second column/row of the third row/column of the matrix.
e3_3 number The third column/row of the third row/column of the matrix.
e3_4 number The fourth column/row of the third row/column of the matrix.
e4_1 number The first column/row of the fourth row/column of the matrix.
e4_2 number The second column/row of the fourth row/column of the matrix.
e4_3 number The third column/row of the fourth row/column of the matrix.
e4_4 number The fourth column of the fourth row of the matrix.
transform Transform The Transform object the method was called on. Allows easily chaining Transform methods.
transform = Transform:setMatrix( layout, matrix )
layout MatrixLayout How to interpret the matrix element arguments (row-major or column-major).
matrix table A flat table containing the 16 matrix elements.
transform Transform The Transform object the method was called on. Allows easily chaining Transform methods.
transform = Transform:setMatrix( layout, matrix )
layout MatrixLayout How to interpret the matrix element arguments (row-major or column-major).
matrix table A table of 4 tables, with each sub-table containing 4 matrix elements.
transform Transform The Transform object the method was called on. Allows easily chaining Transform methods.