| 0.9.7

- Main Page
- Modules
- Files

- File List

norm.hpp
Go to the documentation of this file.
1
43 #pragma once
44
45 // Dependency:
46 #include "../glm.hpp"
47 #include "../gtx/quaternion.hpp"
48
49 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
50 # pragma message("GLM: GLM_GTX_norm extension included")
51 #endif
52
53 namespace glm
54 {
57
60 template <typename T>
61 GLM_FUNC_DECL T length2(
62 T const & x);
63
66 template <typename genType>
67 GLM_FUNC_DECL typename genType::value_type length2(
68 genType const & x);
69
72 template <typename T>
73 GLM_FUNC_DECL T distance2(
74 T const & p0,
75 T const & p1);
76
79 template <typename genType>
80 GLM_FUNC_DECL typename genType::value_type distance2(
81 genType const & p0,
82 genType const & p1);
83
86 template <typename T, precision P>
87 GLM_FUNC_DECL T l1Norm(
88 tvec3<T, P> const & x,
89 tvec3<T, P> const & y);
90
93 template <typename T, precision P>
94 GLM_FUNC_DECL T l1Norm(
95 tvec3<T, P> const & v);
96
99 template <typename T, precision P>
100 GLM_FUNC_DECL T l2Norm(
101 tvec3<T, P> const & x,
102 tvec3<T, P> const & y);
103
106 template <typename T, precision P>
107 GLM_FUNC_DECL T l2Norm(
108 tvec3<T, P> const & x);
109
112 template <typename T, precision P>
113 GLM_FUNC_DECL T lxNorm(
114 tvec3<T, P> const & x,
115 tvec3<T, P> const & y,
116 unsigned int Depth);
117
120 template <typename T, precision P>
121 GLM_FUNC_DECL T lxNorm(
122 tvec3<T, P> const & x,
123 unsigned int Depth);
124
126 }//namespace glm
127
128 #include "norm.inl"
glm::lxNorm
GLM_FUNC_DECL T lxNorm(tvec3< T, P > const &x, unsigned int Depth)
Returns the L norm of v.
glm::distance2
GLM_FUNC_DECL genType::value_type distance2(genType const &p0, genType const &p1)
Returns the squared distance between p0 and p1, i.e., length2(p0 - p1).
glm::l2Norm
GLM_FUNC_DECL T l2Norm(tvec3< T, P > const &x)
Returns the L2 norm of v.
glm
Definition: _noise.hpp:40
glm::l1Norm
GLM_FUNC_DECL T l1Norm(tvec3< T, P > const &v)
Returns the L1 norm of v.
glm::length2
GLM_FUNC_DECL genType::value_type length2(genType const &x)
Returns the squared length of x.