##### Ninja Library - Matrix Function

# njCalcPoints

Performs matrix conversion for multiple points

### FORMAT

`

  void njCalcPoints( *m, *ps, *pd, num )
  NJS_MATRIX *m
  NJS_POINT3 *ps
  NJS_POINT3 *pd
  Int num

`

### PARAMETER

  `*m` | Calculation matrix
  `*ps` | Arbitrary point array
  `*pd` | Point array after conversion
  `num` | Number of points

### RETURN

  None

### DESCRIPTION

  Performs matrix conversion for multiple points *ps, then stores the coordinates after conversion in *pd. When argument *m is NULL, the current matrix is used for processing.

### EXAMPLE

      The following rotates 5 points stored in array ps by 45 degrees around the Y axis.
      NJS_MATRIX m;
      NJS_POINT3 ps[5], pd[5];
      	:
      njUnitMatrix(&m);
      njRotateY(&m, NJM_DEG_ANG(45));
      njCalcPoints(&m, ps, pd, 5);
      	:

### NOTE

  Results carried out with a matrix that inherited the base matrix are returned not as Ninja coordinates but as hardware coordinates.

njCalcPoints

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999