Ninja Library - Matrix Function

njRotateY

Applies a matrix that gives a rotation around the Y axis

FORMAT

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

PARAMETER

 *m  Destination matrix 
 ang  Rotation angle 

RETURN

None

DESCRIPTION

Applies a matrix that gives rotation around the Y 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 rotation by 90 degrees 
around the Y axis to the current matrix.

NJS_MATRIX stack[10];
NJS_VIEW view;
njInitMatrix(stack, 10);
njInitView(&view);
njSetView(&view);
njClearMatrix();
njPushMatrix(NULL);
njRotateY(NULL, NJM_DEG_ANG(90));
njPopMatrix(1);

NOTE

For a matrix [M] and multiplicative rotational matrix [R], [M] = [R] * [M]. Care must be taken with the order in which matrices are multiplied.

njRotateY
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999