njMirror Japanese
<-|INDEX|->
Obtains the mirror image of an arbitrary boundary surface.

FORMAT

#include <Ninja.h>

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

PARAMETERS

NJS_MATRIX *m
calculation matrix
NJS_PLANE *pl
boundary surface

RETURN VALUE

None

FUNCTION


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);

NOTES


RELATED TOPICS


njMirror
<-|INDEX|->

Copyright SEGA ENTERPRISES, LTD., 1997