Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. void MatrixTranspose(float mat[3][3], float result[3][3])
  2. {
  3.  
  4. float mat [3][3] = {};
  5. int r, c; // Row and column counters
  6.  
  7. for (r = 0; r < DIM; r++) {
  8. for (c = 0; c < DIM, c++) {
  9. result[c][r] = mat[r][c]
  10. // Reverse storage order to for resulting array
  11. }
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement