njRotateZ Japanese
<-|INDEX|->
Applies a matrix that gives rotation around Z axis.

FORMAT

#include <Ninja.h>

void njRotateZ(*m, ang)
NJS_MATRIX *m
Angle ang

PARAMETERS

NJS_MATRIX *m
destination matrix
Angle ang
rotation angle

RETURN VALUE

None

FUNCTION


EXAMPLE

The following applies a matrix that gives rotation of 90 degrees around the Z axis to the current matrix.
NJS_MATRIX stack[10];
NJS_VIEW view;

njInitMatrix(stack, 10);
njInitView(&view);
njSetView(&view);
njClearMatrix();
njPushMatrix(NULL);
njRotateZ(NULL, NJM_DEG_ANG(90));
njPopMatrix(1);

NOTES


RELATED TOPICS


njRotateZ
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997