##### Ninja Library - Matrix Function

# njUnitTransPortion

Transforms move elements of specified matrix into units

### FORMAT

`

  njUnitTransPortion(*m)
  NJS_MATRIX *m

`

### PARAMETER

  `*m` | Matrix to be used as unit

### RETURN

  None

### DESCRIPTION

  Transforms the move elements of a specified matrix into units. When argument m is NULL, the current matrix is used for processing.

### EXAMPLE

      The following transforms move elements of matrix m into units.
      NJS_MATRIX m = {1.f, 1.f, 1.f, 1.f,
              1.f, 1.f, 1.f, 1.f,
              1.f, 1.f, 1.f, 1.f,
              1.f, 1.f, 1.f, 1.f};
        njUnitTransPortion(&m);
      % Result %
      m = {1.f, 1.f, 1.f, 1.f,
         1.f, 1.f, 1.f, 1.f,
         1.f, 1.f, 1.f, 1.f,
         0.f, 0.f, 0.f, 1.f};

njUnitTransPortion

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999