- Main Page
- Related Pages
- Modules
- Files

- File List

vector_query.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 #ifndef GLM_GTX_vector_query
39 #define GLM_GTX_vector_query GLM_VERSION
40
41 // Dependency:
42 #include "../glm.hpp"
43 #include <cfloat>
44 #include <limits>
45
46 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
47 # pragma message("GLM: GLM_GTX_vector_query extension included")
48 #endif
49
50 namespace glm
51 {
54
57 template <typename genType>
58 bool areCollinear(
59 genType const & v0,
60 genType const & v1,
61 typename genType::value_type const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
62
65 template <typename genType>
66 bool areOrthogonal(
67 genType const & v0,
68 genType const & v1,
69 typename genType::value_type const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
70
73 template <typename genType, template <typename> class vecType>
74 bool isNormalized(
75 vecType<genType> const & v,
76 genType const & epsilon/* = std::numeric_limits<genType>::epsilon()*/);
77
80 template <typename valType>
81 bool isNull(
82 detail::tvec2<valType> const & v,
83 valType const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
84
87 template <typename valType>
88 bool isNull(
89 detail::tvec3<valType> const & v,
90 valType const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
91
94 template <typename valType>
95 bool isNull(
96 detail::tvec4<valType> const & v,
97 valType const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
98
101 template <typename genType>
102 bool areOrthonormal(
103 genType const & v0,
104 genType const & v1,
105 typename genType::value_type const & epsilon/* = std::numeric_limits<typename genType::value_type>::epsilon()*/);
106
108 }// namespace glm
109
110 #include "vector_query.inl"
111
112 #endif//GLM_GTX_vector_query