1 | #ifndef GIM_TRI_SPHERE_COLLISION_H_INCLUDED |
---|
2 | #define GIM_TRI_SPHERE_COLLISION_H_INCLUDED |
---|
3 | |
---|
4 | /*! \file gim_tri_sphere_collision.h |
---|
5 | \author Francisco León |
---|
6 | */ |
---|
7 | /* |
---|
8 | ----------------------------------------------------------------------------- |
---|
9 | This source file is part of GIMPACT Library. |
---|
10 | |
---|
11 | For the latest info, see http://gimpact.sourceforge.net/ |
---|
12 | |
---|
13 | Copyright (c) 2006 Francisco Leon. C.C. 80087371. |
---|
14 | email: projectileman@yahoo.com |
---|
15 | |
---|
16 | This library is free software; you can redistribute it and/or |
---|
17 | modify it under the terms of EITHER: |
---|
18 | (1) The GNU Lesser General Public License as published by the Free |
---|
19 | Software Foundation; either version 2.1 of the License, or (at |
---|
20 | your option) any later version. The text of the GNU Lesser |
---|
21 | General Public License is included with this library in the |
---|
22 | file GIMPACT-LICENSE-LGPL.TXT. |
---|
23 | (2) The BSD-style license that is included with this library in |
---|
24 | the file GIMPACT-LICENSE-BSD.TXT. |
---|
25 | |
---|
26 | This library is distributed in the hope that it will be useful, |
---|
27 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
28 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the files |
---|
29 | GIMPACT-LICENSE-LGPL.TXT and GIMPACT-LICENSE-BSD.TXT for more details. |
---|
30 | |
---|
31 | ----------------------------------------------------------------------------- |
---|
32 | */ |
---|
33 | |
---|
34 | /*! \addtogroup GEOMETRIC_OPERATIONS |
---|
35 | */ |
---|
36 | //! @{ |
---|
37 | |
---|
38 | //! Finds the contact points from a collision of a triangle and a sphere |
---|
39 | /*! |
---|
40 | \param tri |
---|
41 | \param center |
---|
42 | \param radius |
---|
43 | \param contact_data Contains the closest points on the Sphere, and the normal is pointing to triangle |
---|
44 | */ |
---|
45 | int gim_triangle_sphere_collision( |
---|
46 | GIM_TRIANGLE_DATA *tri, |
---|
47 | vec3f center, GREAL radius, |
---|
48 | GIM_TRIANGLE_CONTACT_DATA * contact_data); |
---|
49 | |
---|
50 | //! @} |
---|
51 | #endif // GIM_TRI_SPHERE_COLLISION_H_INCLUDED |
---|