##### Ninja Library - Matrix Function

# njUnitMatrix

Converts an arbitrary matrix to a unit matrix

### FORMAT

`

  void njUnitMatrix(*m)
  NJS_MATRIX *m

`

### PARAMETER

  `*m` | Matrix to be unitized

### RETURN

  None

### DESCRIPTION

  Converts an arbitrary matrix to a unit matrix. When parameter m is NULL, the current matrix is unitized.

### EXAMPLE

      The following converts the current matrix to a unit matrix.
      NJS_MATRIX stack[10];
      NJS_VIEW view;
      njInitMatrix(stack, 10);
      njInitView(&view);
      njSetView(&view);
      njClearMatrix();
      njPushMatrix(NULL);
      njUnitMatrix(NULL);
      njPopMatrix(1);

njUnitMatrix

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999