Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void MatrixTranspose(float mat[3][3], float result[3][3])
- {
- float mat [3][3] = {};
- int r, c; // Row and column counters
- for (r = 0; r < DIM; r++) {
- for (c = 0; c < DIM, c++) {
- result[c][r] = mat[r][c]
- // Reverse storage order to for resulting array
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement