44 #include "../gtx/quaternion.hpp"
46 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
47 # pragma message("GLM: GLM_GTX_norm extension included")
63 template <
typename genType>
64 typename genType::value_type
length2(
76 template <
typename genType>
83 template <
typename T, precision P>
85 detail::tvec3<T, P>
const & x,
86 detail::tvec3<T, P>
const & y);
90 template <
typename T, precision P>
92 detail::tvec3<T, P>
const & v);
96 template <
typename T, precision P>
98 detail::tvec3<T, P>
const & x,
99 detail::tvec3<T, P>
const & y);
103 template <
typename T, precision P>
105 detail::tvec3<T, P>
const & x);
109 template <
typename T, precision P>
111 detail::tvec3<T, P>
const & x,
112 detail::tvec3<T, P>
const & y,
117 template <
typename T, precision P>
119 detail::tvec3<T, P>
const & x,
T distance2(T const &p0, T const &p1)
Returns the squared distance between p0 and p1, i.e., length(p0 - p1).
T l1Norm(detail::tvec3< T, P > const &x, detail::tvec3< T, P > const &y)
Returns the L1 norm between x and y.
T l2Norm(detail::tvec3< T, P > const &x, detail::tvec3< T, P > const &y)
Returns the L2 norm between x and y.
T length2(T const &x)
Returns the squared length of x.
T lxNorm(detail::tvec3< T, P > const &x, detail::tvec3< T, P > const &y, unsigned int Depth)
Returns the L norm between x and y.