aboutsummaryrefslogtreecommitdiffstats
path: root/src/include/glm/gtx/float_notmalize.inl
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/glm/gtx/float_notmalize.inl')
-rw-r--r--src/include/glm/gtx/float_notmalize.inl13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/include/glm/gtx/float_notmalize.inl b/src/include/glm/gtx/float_notmalize.inl
new file mode 100644
index 0000000..bca18aa
--- /dev/null
+++ b/src/include/glm/gtx/float_notmalize.inl
@@ -0,0 +1,13 @@
+/// @ref gtx_float_normalize
+
+#include <limits>
+
+namespace glm
+{
+ template<length_t L, typename T, qualifier Q>
+ GLM_FUNC_QUALIFIER vec<L, float, Q> floatNormalize(vec<L, T, Q> const& v)
+ {
+ return vec<L, float, Q>(v) / static_cast<float>(std::numeric_limits<T>::max());
+ }
+
+}//namespace glm