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


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


RELATED TOPICS


njTranslate
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997