From c00f046c85de161099088f9d765f9284c794e13d Mon Sep 17 00:00:00 2001 From: Gottfried Leibniz <37632412+gottfriedleibniz@users.noreply.github.com> Date: Thu, 24 Sep 2020 11:24:34 -0300 Subject: [PATCH] fix: fastNormalize ambiguity Declarations in fast_square_root.hpp do not match qualifiers fast_square_root.inl; will generate: "call to 'fastNormalize' is ambiguous" errors. --- glm/gtx/fast_square_root.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/glm/gtx/fast_square_root.hpp b/glm/gtx/fast_square_root.hpp index 9fb3f2fc..ac42a9c0 100644 --- a/glm/gtx/fast_square_root.hpp +++ b/glm/gtx/fast_square_root.hpp @@ -84,7 +84,13 @@ namespace glm /// /// @see gtx_fast_square_root extension. template - GLM_FUNC_DECL genType fastNormalize(genType const& x); + GLM_FUNC_DECL genType fastNormalize(genType x); + + /// Faster than the common normalize function but less accurate. + /// + /// @see gtx_fast_square_root extension. + template + GLM_FUNC_DECL vec fastNormalize(vec const& x); /// @} }// namespace glm