##### Ninja Library - Matrix Function

# njProject

Throws a parallel project onto an arbitrary picture plane

### FORMAT

`

  void njProject(*m, *pl)
  NJS_MATRIX *m
  NJS_PLANE *pl

`

### PARAMETER

  `*m` | Calculation matrix
  `*pl` | Picture plane

### RETURN

  None

### DESCRIPTION

  Throws a parallel projection onto arbitrary picture plane pl. When parameter m is NULL, calculation is performed on the current matrix.

### EXAMPLE

      The following throws a parallel projection through the origin onto the plane.
      NJS_MATRIX stack[10];
      NJS_VIEW view;
      NJS_PLANE pl;
      pl.px = 0.f;
      pl.py = 0.f;
      pl.pz = 0.f;
      pl.vx = 0.f;
      pl.vy = 1.f;
      pl.vz = 1.f;
      njInitMatrix(stack, 10);
      njInitView(&view);
      njSetView(&view);
      njClearMatrix();
      njPushMatrix(NULL);
      njPushMatrix(NULL);
      njProject(NULL, &pl);
      njPopMatrix(1);

njProject

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999