##### Ninja Library - Light Function

# njTranslateLightV

Moves a light matrix according to a directional vector

### FORMAT

`

  void njTranslateLightV( *ptr, *vctr )
  NJS_LIGHT *ptr
  NJS_VECTOR *vctr

`

### PARAMETER

  `*ptr` | Pointer to light source
  `*vctr` | Pointer for direction vector

### RETURN

  None

### DESCRIPTION

  Moves registered light source matrix parallel in the direction vector according to `njCreateLight().` Position and direction of the light source are calculated.

### EXAMPLE

      #include <Shinobi.h>
      	:
      NJS_LIGHT light;
      NJS_VECTOR vector;
      sbInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1);
      njCreateLight(&light, NJD_POINT_LIGHT);
      	:
      njClearMatrix();
      /* Vector movement */
      njTranslateLightV(&light, &vector);

### NOTE

  Light source needs to be specified in `njCreateLight()` and `njClearMatrix()` needs to be called beforehand.

### REFERENCE

  `njCreateLight()
  `

njTranslateLightV

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999