njRotateViewZ | Japanese
    <-|INDEX|->
Rotates the view around the Z axis (absolute rotation).

### FORMAT

      #include <Ninja.h>

      void njRotateViewZ(*v, ang)
      NJS_VIEW *v
      Angle ang

### PARAMETERS

NJS_VIEW *v
  view structure pointer
Angle ang
  rotation angle (absolute amount of rotation)

### RETURN VALUE

  None

### FUNCTION

- Rotates the view around the Z axis.

### EXAMPLE

  Rotates the view located at (0, 0, 3000) with orientation (0, 0, -1) (behind the screen) by 90 degrees around the Z axis.

      #define VIEW_PX 3000.f
      #define VIEW_PY 0.f
      #define VIEW_PZ 0.f
      #define VIEW_VX 0.f
      #define VIEW_VY 0.f
      #define VIEW_VZ -1.f
      #define VIEW_ROLL 0

      NJS_VIEW v;

      v.px = VIEW_PX;
      v.py = VIEW_PY;
      v.pz = VIEW_PZ;
      v.vx = VIEW_VX;
      v.vy = VIEW_VY;
      v.vz = VIEW_VZ;
      v.roll = NJM_DEG_ANG(VIEW_ROLL);

      njSetView(&v);
      njRotateViewZ(&v, NJM_DEG_ANG(90));
      njClearMatrix();

### NOTES

- When parameter v is NULL, the current view is rotated.
- Views (viewpoints) can be moved and rotated by manipulating the view structure in either of two ways: by specifying transformation of view structure matrix in absolute terms, or by manipulating the position (px, py, pz), view direction (vx, vy, vz), and tilt (view roll) of each member in relative terms. This function is of the absolute type.

### RELATED TOPICS

  njSetView()
  njClearMatrix()
  NJM_DEG_ANG()

njRotateViewZ |
    <-|INDEX|->