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

### FORMAT

      #include <Ninja.h>

      void njScale(*m, x, y, z)
      NJS_MATRIX *m
      Float x
      Float y
      Float z

### PARAMETERS

NJS_MATRIX *m
  calculation matrix
Float x
  scaling ratio along the X axis
Float y
  scaling ratio along the Y axis
Float z
  scaling ratio along the Z axis

### 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;

      njInitMatrix(stack, 10);
      njInitView(&view);
      njSetView(&view);
      njClearMatrix();
      njPushMatrix(NULL);
      njScale(NULL, 0.5f, 1.f, 2.f);
      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

njScale |
    <-|INDEX|->