##### Ninja Library - View Function

# njTranslateViewAbsolute

Moves the view location along the X, Y, and Z axes (absolute move)

### FORMAT

`

  void njTranslateViewAbsolute( *v, x, y, z )
  NJS_VIEW v
  Float x
  Float y
  Float z

`

### PARAMETER

  `*v` | Pointer to view structure
  `x` | Amount of movement along X axis (absolute amount)
  `y` | Amount of movement along Y axis (absolute amount)
  `z` | Amount of movement along Z axis (absolute amount)

### RETURN

  None

### DESCRIPTION

  Moves the view location along the X, Y, and Z axes by absolute amount. The view's current location will be the origin of this movement.

### EXAMPLE

      The following moves the view located at (0, 0, 3000) and directed toward (0, 0, -1)
      (into the screen) by 100 in the X direction, 200 in the Y direction, and 300
      in the Z direction, without changing the view direction.

      #define VIEW_APX 0.f
      #define VIEW_APY 0.f
      #define VIEW_APZ 3000.f
      #define VIEW_AVX 0.f
      #define VIEW_AVY 0.f
      #define VIEW_AVZ -1.f
      #define VIEW_AROLL 0
      NJS_VIEW v;
      v.apx = VIEW_APX;
      v.apy = VIEW_APY;
      v.apz = VIEW_APZ;
      v.avx = VIEW_AVX;
      v.avy = VIEW_AVY;
      v.avz = VIEW_AVZ;
      v.aroll = NJM_DEG_ANG(VIEW_AROLL);
      njTranslateViewAbsolute(&v, 100.f, 200.f, 300.f);
      njSetView( &v );

### NOTE

  When parameter v is NULL, the current view is moved.

### REFERENCE

  `njInitView()
  njSetView()
  `

njTranslateViewAbsolute

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999