Flow Visualisation
norm.hpp
Go to the documentation of this file.
1 
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
T l2Norm(detail::tvec3< T > const &x, detail::tvec3< T > const &y)
Definition: norm.inl:118
Definition: _detail.hpp:38
T lxNorm(detail::tvec3< T > const &x, detail::tvec3< T > const &y, unsigned int Depth)
Definition: norm.inl:137
Definition: _swizzle.hpp:43
T distance2(T const &p0, T const &p1)
Definition: norm.inl:59
T length2(T const &x)
Definition: norm.inl:14
T l1Norm(detail::tvec3< T > const &x, detail::tvec3< T > const &y)
Definition: norm.inl:99