##### Ninja Library - Matrix Function

# njTransposeMatrix

Transposes a matrix

### FORMAT

`

  void njTransposeMatrix( *m )
  NJS_MATRIX *m

`

### PARAMETER

  `*m` | Matrix to be transposed

### RETURN

  None

### DESCRIPTION

  Transposes arbitrary matrix m. When parameter m is NULL, the current matrix is transposed.

### EXAMPLE

      The following transposes the current matrix.
      NJS_MATRIX stack[10];
      NJS_VIEW view;
      njInitMatrix(stack, 10);
      njInitView(&view);
      njSetView(&view);
      njClearMatrix();
      njPushMatrix(NULL);
      njTransposeMatrix(NULL);
      njPopMatrix(1);

### NOTE

  For arbitrary matrix M, [M] = [M]'.

njTransposeMatrix

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999