src/collisions.h

Go to the documentation of this file.
00001 /* Crown and Cutlass
00002  * Collision Detection Header
00003  */
00004 
00005 #ifndef _COLLISIONS_H_
00006 #define _COLLISIONS_H_
00007 
00008 /* This is from "Fast, Minimum Storage Ray-Triangle Intersection"
00009  * by Ben Trumbore and Tomas M�ler.
00010  * http://www.acm.org/jgt/papers/MollerTrumbore97/
00011  *
00012  * It acutally checks for the ray-triangle collision
00013  */
00014 
00015 #define TEST_CULL
00016 
00017 int
00018 intersect_triangle(double orig[3], double dir[3],
00019                    double vert0[3], double vert1[3], double vert2[3],
00020                    double *t, double *u, double *v);
00021 
00022 #endif /* _COLLISIONS_H */

Generated on Mon Jan 8 22:34:12 2007 for CrownandCutlass by  doxygen 1.4.7