17 #include "../detail/func_geometric.hpp"
18 #include "../gtx/quaternion.hpp"
20 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
21 # pragma message("GLM: GLM_GTX_norm extension included")
31 template <
typename T, precision P,
template <
typename, precision>
class vecType>
33 vecType<T, P>
const & x);
37 template <
typename T, precision P,
template <
typename, precision>
class vecType>
39 vecType<T, P>
const & p0,
40 vecType<T, P>
const & p1);
44 template <
typename T, precision P>
46 tvec3<T, P>
const & x,
47 tvec3<T, P>
const & y);
51 template <
typename T, precision P>
53 tvec3<T, P>
const & v);
57 template <
typename T, precision P>
59 tvec3<T, P>
const & x,
60 tvec3<T, P>
const & y);
64 template <
typename T, precision P>
66 tvec3<T, P>
const & x);
70 template <
typename T, precision P>
72 tvec3<T, P>
const & x,
73 tvec3<T, P>
const & y,
78 template <
typename T, precision P>
80 tvec3<T, P>
const & x,
GLM_FUNC_DECL T l2Norm(tvec3< T, P > const &x)
Returns the L2 norm of v.
GLM_FUNC_DECL T distance2(vecType< T, P > const &p0, vecType< T, P > const &p1)
Returns the squared distance between p0 and p1, i.e., length2(p0 - p1).
GLM_FUNC_DECL T l1Norm(tvec3< T, P > const &v)
Returns the L1 norm of v.
GLM_FUNC_DECL T lxNorm(tvec3< T, P > const &x, unsigned int Depth)
Returns the L norm of v.
GLM_FUNC_DECL T length2(vecType< T, P > const &x)
Returns the squared length of x.