eastern-flames/eastern flames/scripts/matrux_transpose/matrux_transpose.gml

13 lines
240 B
Plaintext
Raw Permalink Normal View History

2022-08-19 01:03:51 +00:00
/// Function: matrix_transpose()
function matrix_transpose(){
var _m0 = argument0;
var _m1 = argument0;
for (var _i = 0; _i < 3; _i++) {
for (var _j = 0; _j < 3; _j++) {
_m1[_j*4+_i] = _m0[_i*4+_j];
}
}
return _m1;
}