njInvertMatrix | Japanese
    <-|INDEX|->
Obtains the inverse (reversed rows/columns) of a matrix.

### FORMAT

      #include <Ninja.h>

      void njInvertMatrix(*m)
      NJS_MATRIX *m

### PARAMETERS

NJS_MATRIX *m
  source matrix

### RETURN VALUE

  None

### FUNCTION

- Inverts the rows and columns of an arbitrary matrix.
- When parameter m is NULL, the current matrix is inverted.

### EXAMPLE

  The following inverts the current matrix.

      NJS_MATRIX stack[10];
      NJS_VIEW view;
      NJS_VECTOR v;

      v.x = 0.5f;
      v.y = 1.f;
      v.z = 2.f;
      njInitMatrix(stack, 10);
      njInitView(&view);
      njSetView(&view);
      njClearMatrix();
      njPushMatrix(NULL);
      njInvertMatrix(NULL);
      njPopMatrix(1);

### NOTES

- If the arbitrary matrix is given as [M], the result is [M] = [M]-1.

### RELATED TOPICS

njInvertMatrix |
    <-|INDEX|->