Ninja Library - Collision Function

njIsParalellPL2PL

Returns whether two planes are parallel

FORMAT

Bool njIsParalellPL2L( *pl1, *pl2 )
NJS_PLANE *pl1
NJS_PLANE *pl2

PARAMETER

 *pl1  Plane 1 data 
 *pl2  Plane 2 data 

RETURN

 TRUE   Parallel 
 FALSE   Not parallel 

DESCRIPTION

Deltermines whether or not two planes are parallel.

EXAMPLE

NJS_PLANE pl1, pl2;
pl1.px = 100.f;
pl1.py = 100.f;
pl1.pz = 100.f;
pl1.vx = 0.f;
pl1.vy = 0.f;
pl1.vz = 1.f;
pl2.px = -100.f;
pl2.py = -100.f;
pl2.pz = -100.f;
pl2.vx = 0.f;
pl2.vy = 0.f;
pl2.vz = -1.f;
njIsParalellPL2PL(&pl1, &pl2);
% Result %
TRUE

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