DccNiTghtmare: a satiric post-apocalyptical RPG.
Copyright (C) 2005-2012 DNTeam <email@example.com>
This file is part of DccNiTghtmare.
DccNiTghtmare is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
DccNiTghtmare is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with DccNiTghtmare. If not, see <http://www.gnu.org/licenses/>.
/*! Verify if two triangles overlaps
* vertices of triangle 1: V0,V1,V2
* vertices of triangle 2: U0,U1,U2
* \return -> 1 if the triangles intersect, otherwise 0 */
int NoDivTriTriIsect(float V0,float V1,float V2,
float U0,float U1,float U2);
int intersect_triangle(float orig, float dir,
float vert0 , float vert1 , float vert2 ,
float* t, float* u, float* v);