43 #include "../gtx/quaternion.hpp"
45 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
46 # pragma message("GLM: GLM_GTX_norm extension included")
62 template <
typename genType>
63 GLM_FUNC_DECL
typename genType::value_type
length2(
75 template <
typename genType>
76 GLM_FUNC_DECL
typename genType::value_type
distance2(
82 template <
typename T, precision P>
84 tvec3<T, P>
const & x,
85 tvec3<T, P>
const & y);
89 template <
typename T, precision P>
91 tvec3<T, P>
const & v);
95 template <
typename T, precision P>
97 tvec3<T, P>
const & x,
98 tvec3<T, P>
const & y);
102 template <
typename T, precision P>
104 tvec3<T, P>
const & x);
108 template <
typename T, precision P>
110 tvec3<T, P>
const & x,
111 tvec3<T, P>
const & y,
116 template <
typename T, precision P>
118 tvec3<T, P>
const & x,
GLM_FUNC_DECL genType::value_type distance2(genType const &p0, genType const &p1)
Returns the squared distance between p0 and p1, i.e., length(p0 - p1).
GLM_FUNC_DECL genType::value_type length2(genType const &x)
Returns the squared length of x.
GLM_FUNC_DECL T lxNorm(tvec3< T, P > const &x, unsigned int Depth)
Returns the L norm of v.
GLM_FUNC_DECL T l1Norm(tvec3< T, P > const &v)
Returns the L1 norm of v.
GLM_FUNC_DECL T l2Norm(tvec3< T, P > const &x)
Returns the L2 norm of v.