##### Ninja Library - Camera Function

# njRotateCameraPositionXYZ

Rotates camera position around X, Y, Z axes

### FORMAT

`

  void njRotateCameraPositionXYZ(*c, ax, ay, az)
  NJS_CAMERA *c
  Angle ang

`

### PARAMETER

  `*c` | Pointer to camera structure
  `ax` | Rotation angle around X axis
  `ay` | Rotation angle around Y axis
  `az` | Rotation angle around Z axis

### RETURN

  None

### DESCRIPTION

  Rotates camera position around X, Y, Z axes.

### EXAMPLE

      Camera is at (0, 0, 3000) and facing (0, 0, -1) direction.
      The following leaves visual axis as is and rotates only position
      by 90, 120, and 150 degrees around X, Y, and Z axes respectively.

      NJS_CAMERA c;
      njInitCamera(&c);
      njTranslateCameraPosition(&c, 0.f, 0.f, 3000.f);
      njRotateCameraPositionXYZ(&c, NJM_DEG_ANG(90), NJM_DEG_ANG(120), NJM_DEG_ANG(150));
      njSetCamera(&c);

njRotateCameraPositionXYZ

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999