njRotateXYZ Japanese
<-|INDEX|->
Applies a matrix that gives rotation around X, Y, and Z axes.

FORMAT

#include <Ninja.h>

void njRotateXYZ(*m, x, y, z)
NJS_MATRIX *m
Angle x
Angle y
Angle z

PARAMETERS

NJS_MATRIX *m
destination matrix
Angle x
around the x
Angle x
around the y
Angle x
around the z

RETURN VALUE

None

FUNCTION


EXAMPLE

The following applies a matrix that gives rotation of 30 degrees around the X axis, 60 degrees around the Y axis, and 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);
njRotateXYZ(NULL, NJM_DEG_ANG(30), NJM_DEG_ANG(60), NJM_DEG_ANG(90));
njPopMatrix(1);

NOTES


RELATED TOPICS


njRotateXYZ
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997