- Main Page
- Related Pages
- Modules
- Files

- File List

norm.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_norm
40 #define GLM_GTX_norm GLM_VERSION
41
42 // Dependency:
43 #include "../glm.hpp"
44 #include "../gtx/quaternion.hpp"
45
46 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
47 # pragma message("GLM: GLM_GTX_norm extension included")
48 #endif
49
50 namespace glm
51 {
54
57 template <typename T>
58 T length2(
59 T const & x);
60
63 template <typename genType>
64 typename genType::value_type length2(
65 genType const & x);
66
69 template <typename T>
70 T length2(
71 detail::tquat<T> const & q);
72
75 template <typename T>
76 T distance2(
77 T const & p0,
78 T const & p1);
79
82 template <typename genType>
83 typename genType::value_type distance2(
84 genType const & p0,
85 genType const & p1);
86
89 template <typename T>
90 T l1Norm(
91 detail::tvec3<T> const & x,
92 detail::tvec3<T> const & y);
93
96 template <typename T>
97 T l1Norm(
98 detail::tvec3<T> const & v);
99
102 template <typename T>
103 T l2Norm(
104 detail::tvec3<T> const & x,
105 detail::tvec3<T> const & y);
106
109 template <typename T>
110 T l2Norm(
111 detail::tvec3<T> const & x);
112
115 template <typename T>
116 T lxNorm(
117 detail::tvec3<T> const & x,
118 detail::tvec3<T> const & y,
119 unsigned int Depth);
120
123 template <typename T>
124 T lxNorm(
125 detail::tvec3<T> const & x,
126 unsigned int Depth);
127
129 }//namespace glm
130
131 #include "norm.inl"
132
133 #endif//GLM_GTX_norm