njProject2 | Japanese
    <-|INDEX|->
Projects a transparent view onto an arbitrary picture plane.

### FORMAT

      #include <Ninja.h>

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

### PARAMETERS

NJS_MATRIX *m
  calculation matrix
NJS_PLANE *pl
  picture plane
NJS_POINT3 *v
  projection viewpoint
NJS_POINT3 *p
  center point of object to be projected

### RETURN VALUE

  None

### FUNCTION

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

### EXAMPLE

  This 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_POINT 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);

### NOTES

### RELATED TOPICS

njProject2 |
    <-|INDEX|->