njSetBaseView | Japanese
    <-|INDEX|->
Sets the current view as the base view.

### FORMAT

      #include <Ninja.h>
      void njSetBaseView( *v )
      NJS_VIEW *v

### PARAMETERS

NJS_VIEW *v
  view structure pointer

### RETURN VALUE

  None

### FUNCTION

- Sets the current view location and viewline orientation as the
- base view location and view direction.

### EXAMPLE

  Moves the view located at (0, 0, 0) and directed toward (0, 0, -1) (toward the inside of the screen) to (50, 50, 50), then sets that view as the base view after reorienting the viewline toward (0, 0, 0).

      #define VIEW_PX 0.f
      #define VIEW_PY 0.f
      #define VIEW_PZ 0.f
      #define VIEW_VX 0.f
      #define VIEW_VY 0.f
      #define VIEW_VZ -1.f
      #define VIEW_ROLL 0

      NJS_VIEW v;

      v.px = VIEW_PX;
      v.py = VIEW_PY;
      v.pz = VIEW_PZ;
      v.vx = VIEW_VX;
      v.vy = VIEW_VY;
      v.vz = VIEW_VZ;
      v.roll = NJM_DEG_ANG(VIEW_ROLL);

      njTranslateViewRelative(50.f, 50.f, 50.f);
      njnjLookAtView(&v, 0.f, 0.f, 0.f);
      njSetBaseView(&v);
      njSetView(&v);
      njClearMatrix();

### NOTES

- When parameter v is NULL, this function acts on the current view.

### RELATED TOPICS

  njInitView()
  njSetView()
  njClearMatrix()

njSetBaseView |
    <-|INDEX|->