##### Ninja Library - Camera Function

# njRotateCameraPositionY

Rotates camera position around local Y axis

### FORMAT

`

  void njRotateCameraPositionY(*c, ang)
  NJS_CAMERA *c
  Angle ang

`

### PARAMETER

  `*c` | Pointer to camera structure
  `ang` | Rotation angle (relative value)

### RETURN

  None

### DESCRIPTION

  Rotates camera position around local Y axis.

### 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 degrees around Y axis.

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

njRotateCameraPositionY

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999