• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/// @ref gtx_float_normalize
2/// @file glm/gtx/float_normalize.inl
3
4#include <limits>
5
6namespace glm
7{
8	template <typename T, precision P, template <typename, precision> class vecType>
9	GLM_FUNC_QUALIFIER vecType<float, P> floatNormalize(vecType<T, P> const & v)
10	{
11		return vecType<float, P>(v) / static_cast<float>(std::numeric_limits<T>::max());
12	}
13
14}//namespace glm
15