##### Ninja Library - View Function

# njRotateViewXYZAbsolute

Rotates the view location around the X, Y, and Z axes (absolute rotation)

### FORMAT

`

  void njRotateViewXYZAbsolute( *v, angx, angy, angz )
  NJS_VIEW *v
  Angle angx
  Angle angy
  Angle angz

`

### PARAMETER

  `*v` | Pointer to view structure
  `angx` | X axis rotation angle (absolute amount)
  `angy` | Y axis rotation angle (absolute amount)
  `angz` | Z axis rotation angle (absolute amount)

### RETURN

  None

### DESCRIPTION

  Rotates the view by an absolute amount around the X, Y, and Z axes. Rotation proceeds in the order of X axis, Y axis, and Z axis.

### EXAMPLE

      The following rotates the location of the view located at (0, 0, 3000)
      and directed towarded (0, 0, -1) (into the screen) by 30 degrees around the X axis,
      60 degrees around the Y axis and 90 degrees around the Z axis,
      without changing the view location.

      #define VIEW_APX 0.f
      #define VIEW_APY 0.f
      #define VIEW_APZ 3000.f
      #define VIEW_AVX 0.f
      #define VIEW_AVY 0.f
      #define VIEW_AVZ -1.f
      #define VIEW_AROLL 0
      NJS_VIEW v;
      v.apx = VIEW_APX;
      v.apy = VIEW_APY;
      v.apz = VIEW_APZ;
      v.avx = VIEW_AVX;
      v.avy = VIEW_AVY;
      v.avz = VIEW_AVZ;
      v.aroll = NJM_DEG_ANG(AVIEW_ROLL);
      njRotateViewXYZAbsolute(&v, NJM_DEG_ANG(30), NJM_DEG_ANG(60), NJM_DEG_ANG(90));
      njSetView( &v );

### NOTE

  When argument v is NULL, the current view is rotated.

### REFERENCE

  `njSetView()
  `

njRotateViewXYZAbsolute

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999