##### Ninja Library - Matrix Function

# njCalcVectors

Performs matrix conversion for multiple vectors

### FORMAT

`

  void njCalcVectors( *m, *vs, *vd, num )
  NJS_MATRIX *m
  NJS_VECTOR *vs
  NJS_VECTOR *vd
  Int num

`

### PARAMETER

  `*m` | Calculation matrix
  `*vs` | Arbitrary vector array
  `*vd` | Vector array after conversion
  `num` | Number of vectors

### RETURN

  None

### DESCRIPTION

  Performs matrix conversion for multiple vectors vs and stores the coordinates after conversion in vd. When argument m is NULL, the current matrix is used for processing.

### EXAMPLE

      The following rotates 5 vectors stored in array vs by 45 degrees around the Y axis.
      NJS_MATRIX m;
      NJS_VECTOR vs[5], vd[5];
      	:
      njUnitMatrix(&m);
      njRotateY(&m, NJM_DEG_ANG(45));
      njCalcVectors(&m, vs, vd, 5);
      	:

### NOTE

  When the flag for the `njInitMatrix()` function is set to "1", the processing result is converted into the unit vector. Results carried out with a matrix that inherited the base matrix are returned not as Ninja coordinates but as hardware coordinates.

### REFERENCE

  `njInitMatrix()
  `

njCalcVectors

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999