mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-15 08:52:15 +00:00
4597b03873
Opens in Android Studio but haven't even tried to build it yet (it won't.. I know that much!)
39 lines
No EOL
1.4 KiB
C
39 lines
No EOL
1.4 KiB
C
/*
|
|
This file is part of Jedi Academy.
|
|
|
|
Jedi Academy is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License version 2
|
|
as published by the Free Software Foundation.
|
|
|
|
Jedi Academy 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 Jedi Academy. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
// Copyright 2001-2013 Raven Software
|
|
|
|
/* Triangle/triangle intersection test routine,
|
|
* by Tomas Moller, 1997.
|
|
* See article "A Fast Triangle-Triangle Intersection Test",
|
|
* Journal of Graphics Tools, 2(2), 1997
|
|
*
|
|
* int tri_tri_intersect(float V0[3],float V1[3],float V2[3],
|
|
* float U0[3],float U1[3],float U2[3])
|
|
*
|
|
* parameters: vertices of triangle 1: V0,V1,V2
|
|
* vertices of triangle 2: U0,U1,U2
|
|
* result : returns 1 if the triangles intersect, otherwise 0
|
|
*
|
|
*/
|
|
#ifndef _TRI_COLL_TEST_H
|
|
#define _TRI_COLL_TEST_H
|
|
|
|
#include "../game/g_local.h"
|
|
#include "q_shared.h"
|
|
|
|
float ShortestLineSegBewteen2LineSegs( vec3_t start1, vec3_t end1, vec3_t start2, vec3_t end2, vec3_t close_pnt1, vec3_t close_pnt2 );
|
|
|
|
#endif |