##### Ninja Library - Matrix Function

# njSetMatrix

Copies an arbitrary matrix

### FORMAT

`

  void njSetMatrix(*md, *ms)
  NJS_MATRIX *md
  NJS_MATRIX *ms

`

### PARAMETER

  `*md` | Copy destination matrix
  `*ms` | Copy source matrix

### RETURN

### DESCRIPTION

  Copies arbitrary matrix md to matrix ms. When parameter md is NULL, the current matrix is copied.

### EXAMPLE

      The following copies unit matrix to current matrix.
      NJS_MATRIX stack[10];
      NJS_VIEW view;
      njInitMatrix(stack, 10);
      njInitView(&view);
      njSetView(&view);
      njClearMatrix();
      njPushMatrix(NULL);
      njSetMatrix(NULL, _unit_matrix_);
      njPopMatrix(1);

njSetMatrix

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999