Ninja Library - Collision Function

njIsParalellL2PL

Returns whether a line and a plane are parallel

FORMAT

Bool njIsParalellL2L(*l, *pl)
NJS_LINE *l
NJS_PLANE *pl

PARAMETER

 *l  Line data 
 *pl  Plane data 

RETURN

 TRUE   Parallel 
 FALSE  Not parallel 

DESCRIPTION

Determines whether or not a line and a plane are parallel.

EXAMPLE

NJS_LINE l;
NJS_PLANE pl;
l.px = 100.f;
l.py = 100.f;
l.pz = 100.f;
l.vx = 1.f;
l.vy = 0.f;
l.vz = 0.f;
pl.px = -100.f;
pl.py = -100.f;
pl.pz = -100.f;
pl.vx = -0.f;
pl.vy = -0.f;
pl.vz = -1.f;
njIsParalellL2PL(&l, &pl);
% Result %
TRUE

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