njScaleV | Japanese
    <-|INDEX|->
Scales a matrix.

### FORMAT

      #include <Ninja.h>

      void njScaleV(*m, *v)
      NJS_MATRIX *m
      NJS_VECTOR *v

### PARAMETERS

NJS_MATRIX *m
  pointer to the calculation matrix
NJS_VECTOR *v
  scaling ratio along the X, Y, and Z axes

### RETURN VALUE

  None

### FUNCTION

- Scales arbitrary matrix m.
- When parameter m is NULL, the current matrix is scaled.

### EXAMPLE

  The following scales the current matrix by 0.5 along the X axis, 1 along the Y axis, and 2 along the Z axis.

      NJS_MATRIX stack[10];
      NJS_VIEW view;
      NJS_VECTOR v;

      v.x = 0.5f;
      v.y = 1.f;
      v.z = 2.f;
      njInitMatrix(stack, 10);
      njInitView(&view);
      njSetView(&view);
      njClearMatrix();
      njPushMatrix(NULL);
      njScaleV(NULL, &v);
      njPopMatrix(1);

### NOTES

- For arbitrary matrix [M] and multiplicative scaling matrix [R], [M] = [S] * [M].
- Care must be taken with the order in which matrices are multiplied.

### RELATED TOPICS

njScaleV |
    <-|INDEX|->