njCalcVector | Japanese
    <-|INDEX|->
Applies matrix conversion to an arbitrary vector.

### FORMAT

      #include <Ninja.h>

      void njCalcVector(*m, *vs, *vd)
      NJS_MATRIX *m
      NJS_VECTOR *vs
      NJS_VECTOR *vd

### PARAMETERS

NJS_MATRIX *m
  calculation matrix
NJS_VECTOR *vs
  arbitrary vector
NJS_VECTOR *vd
  post-conversion vector

### RETURN VALUE

  None

### FUNCTION

- Applies matrix conversion to arbitrary vector vs, then stores the vector resulting from conversion in vd.
- When parameter m is NULL, the current matrix is taken as the calculation matrix.

### EXAMPLE

  The following rotates vector vs(100, 0, 0) 45 degrees around the Y axis.

      NJS_MATRIX m;
      NJS_VECTOR vs, vd;

      vs.x = 100.f;
      vs.y = 0.f;
      vs.z = 0.f;
      njUnitMatrix(&m);
      njRotateY(&m, NJM_DEG_ANG(45));
      njCalcVector(&m, &vs, &vd);

      % result %
      vd(70.710701, 00,000000, -70.710701)

### NOTES

### RELATED TOPICS

njCalcVector |
    <-|INDEX|->