- Main Page
- Related Pages
- Modules
- Files

- File List

intersect.hpp
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 #ifndef GLM_GTX_intersect
40 #define GLM_GTX_intersect GLM_VERSION
41
42 // Dependency:
43 #include "../glm.hpp"
44 #include "../gtx/closest_point.hpp"
45
46 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
47 # pragma message("GLM: GLM_GTX_closest_point extension included")
48 #endif
49
50 namespace glm
51 {
54
57 template <typename genType>
58 bool intersectRayTriangle(
59 genType const & orig, genType const & dir,
60 genType const & vert0, genType const & vert1, genType const & vert2,
61 genType & baryPosition);
62
65 template <typename genType>
66 bool intersectLineTriangle(
67 genType const & orig, genType const & dir,
68 genType const & vert0, genType const & vert1, genType const & vert2,
69 genType & position);
70
74 template <typename genType>
75 bool intersectRaySphere(
76 genType const & rayStarting, genType const & rayNormalizedDirection,
77 genType const & sphereCenter, const typename genType::value_type sphereRadiusSquered,
78 typename genType::value_type & intersectionDistance);
79
82 template <typename genType>
83 bool intersectRaySphere(
84 genType const & rayStarting, genType const & rayNormalizedDirection,
85 genType const & sphereCenter, const typename genType::value_type sphereRadius,
86 genType & intersectionPosition, genType & intersectionNormal);
87
90 template <typename genType>
91 bool intersectLineSphere(
92 genType const & point0, genType const & point1,
93 genType const & sphereCenter, typename genType::value_type sphereRadius,
94 genType & intersectionPosition1, genType & intersectionNormal1,
95 genType & intersectionPosition2 = genType(), genType & intersectionNormal2 = genType());
96
98 }//namespace glm
99
100 #include "intersect.inl"
101
102 #endif//GLM_GTX_intersect