- Main Page
- Related Pages
- Modules
- Files

- File List

vector_angle.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
40 #ifndef GLM_GTX_vector_angle
41 #define GLM_GTX_vector_angle GLM_VERSION
42
43 // Dependency:
44 #include "../glm.hpp"
45 #include "../gtc/epsilon.hpp"
46 #include "../gtx/quaternion.hpp"
47 #include "../gtx/rotate_vector.hpp"
48
49 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
50 # pragma message("GLM: GLM_GTX_vector_angle extension included")
51 #endif
52
53 namespace glm
54 {
57
61 template <typename vecType>
62 GLM_FUNC_QUALIFIER typename vecType::value_type angle(
63 vecType const & x,
64 vecType const & y);
65
69 template <typename T>
70 GLM_FUNC_QUALIFIER T orientedAngle(
71 detail::tvec2<T> const & x,
72 detail::tvec2<T> const & y);
73
77 template <typename T>
78 GLM_FUNC_QUALIFIER T orientedAngle(
79 detail::tvec3<T> const & x,
80 detail::tvec3<T> const & y,
81 detail::tvec3<T> const & ref);
82
84 }// namespace glm
85
86 #include "vector_angle.inl"
87
88 #endif//GLM_GTX_vector_angle