##### Ninja Library - View Function

# njUnitViewVector

Converts the view vector to a unit vector

### FORMAT

`

  void njUnitViewVector( *v )
  NJS_VIEW *v

`

### PARAMETER

  `*v` | Pointer to view structure

### RETURN

  None

### DESCRIPTION

  Converts both the view vector of the current user-specified view and the base view vector to unit vectors.

### EXAMPLE

      NJS_VIEW v;
      v.px = v.py = v.pz = 0.f;
      v.apx = v.apy = v.apz = 0.f;
      v.vx = v.vy = v.vz = 1.f;
      v.avx = v.avy = v.avz = 1.f;
      njUnitViewVector(&v);

### NOTE

  When parameter v is NULL, the view matrix of the current view is converted.

njUnitViewVector

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999