Ninja Library - Matrix Function

njMirror

Obtains the mirror image of an arbitrary boundary surface

FORMAT

void njMirror(*m, *pl)
NJS_MATRIX *m
NJS_PLANE *pl

PARAMETER

 *m  Calculation matrix 
 *pl  Boundary surface 

RETURN

None

DESCRIPTION

Obtains the mirror image of arbitrary boundary surface pl. When parameter m is NULL, the calculation is performed on the current matrix.

EXAMPLE

The following obtains the mirror image through the origin of the boundary 
surface containing vector (0, 1, 1).

NJS_MATRIX stack[10];
NJS_VIEW view;
NJS_PLANE pl;
pl.px = 0.f;
pl.py = 0.f;
pl.pz = 0.f;
pl.vx = 0.f;
pl.vy = 1.f;
pl.vz = 1.f;
njInitMatrix(stack, 10);
njInitView(&view);
njSetView(&view);
njClearMatrix();
njPushMatrix(NULL);
njMirror(NULL, &pl);
njPopMatrix(1);

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