njSetLightLocation | Japanese
    <-|INDEX|->
Sets the location of light defined by njCreateLight.

### FORMAT

      #include <NINJA.H>
      void njSetLightLocation( *ptr, px, py, pz )
      NJS_LIGHT *ptr
      Float px
      Float py
      Float pz

### PARAMETERS

*ptr
  light pointer
px
  x coordinate of light source location
py
  y coordinate of light source location
pz
  z coordinate of light source location

### RETURN VALUE

  None

### ERROR VALUE

  None

### FUNCTION

  Sets the location of the light source. (The default location is the origin.)

### EXAMPLE

      #include <NINJA.H>
      ...........

      NJS_LIGHT light;

      njInitSystem();
      njCreateLight(&light, NJD_POINT_LIGHT);
      ...........

      /* Set point light source location to (10,0,-10) */
      njSetLightLocation(&light, 10.f, 0.f, -10.f);

### NOTES

- Before using this function, the light source must first be defined using njCreateLight.

### RELATED TOPICS

  njCreateLight()

njSetLightLocation |
    <-|INDEX|->