##### Ninja Library - Matrix Function

# njProject2

Projects a transparent view onto an arbitrary picture plane

### FORMAT

`

  void njProject2(*m, *pl, *v, *p)
  NJS_MATRIX *m
  NJS_PLANE *pl
  NJS_POINT3 *v
  NJS_POINT3 *p

`

### PARAMETER

  `*m` | Calculation matrix
  `*pl` | Picture plane
  `*v` | Projection viewpoint
  `*p` | Center point of object to be projected

### RETURN

  None

### DESCRIPTION

  Projects a transparent image onto arbitrary plane pl from viewpoint p. When parameter m is NULL, the current matrix is used for calculation.

### EXAMPLE

      The following projects a transparent image through the origin onto the plane
      containing vector (0, 1, 1) from point v(0, 100, 100).
      Center point of the object is at p(0, 10, 10).

      NJS_MATRIX stack[10];
      NJS_VIEW view;
      NJS_PLANE pl;
      NJS_POINT3 v, p;
      pl.px = 0.f;
      pl.py = 0.f;
      pl.pz = 0.f;
      pl.vx = 0.f;
      pl.vy = 1.f;
      pl.vz = 1.f;
      v.x = 0.f;
      v.y = 100.f;
      v.z = 100.f;
      p.x = 0.f;
      p.y = 10.f;
      p.z = 10.f;
      njInitMatrix(stack, 10);
      njInitView(&view);
      njSetView(&view);
      njClearMatrix();
      njPushMatrix(NULL);
      njProject2(NULL, &pl, &v, &p);
      njPopMatrix(1);

njProject2

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999