| 1 | /// @ref gtx_float_normalize |
| 2 | |
| 3 | #include <limits> |
| 4 | |
| 5 | namespace glm |
| 6 | { |
| 7 | template<length_t L, typename T, qualifier Q> |
| 8 | GLM_FUNC_QUALIFIER vec<L, float, Q> floatNormalize(vec<L, T, Q> const& v) |
| 9 | { |
| 10 | return vec<L, float, Q>(v) / static_cast<float>(std::numeric_limits<T>::max()); |
| 11 | } |
| 12 | |
| 13 | }//namespace glm |