njTranslate | Japanese
    <-|INDEX|->
Applies a matrix that gives parallel translation along each axis.

### FORMAT

      #include <Ninja.h>

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

### PARAMETERS

NJS_MATRIX *m
  destination matrix
Float x
  amount of translation along the X axis
Float y
  amount of translation along the Y axis
Float z
  amount of translation along the Z axis

### RETURN VALUE

### FUNCTION

- Applies a matrix that gives parallel translation along each axis to the matrix m.
- When parameter m is NULL, the current matrix will be the destination.

### EXAMPLE

  The following applies a matrix that gives parallel translation of 10 along the X axis, 20 along the Y axis, and 30 along the Z axis to the current matrix.

      NJS_MATRIX stack[10];
      NJS_VIEW view;

      njInitMatrix(stack, 10);
      njInitView(&view);
      njSetView(&view);
      njClearMatrix();
      njPushMatrix(NULL);
      njTranslate(NULL, 10.f, 20.f, 30.f);
      njPopMatrix(1);

### NOTES

- For matrix [M] and matrix translated through multiplication [T],[M] = [T] * [M].
- Care must be taken with the order in which matrices are multiplied.

### RELATED TOPICS

njTranslate |
    <-|INDEX|->