From e62817b8252974b8a98393275874ee303840bf13 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Fri, 12 May 2017 18:49:50 +0500 Subject: 2017-05-12 --- depedencies/include/glm/gtx/normalize_dot.hpp | 45 +++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 depedencies/include/glm/gtx/normalize_dot.hpp (limited to 'depedencies/include/glm/gtx/normalize_dot.hpp') diff --git a/depedencies/include/glm/gtx/normalize_dot.hpp b/depedencies/include/glm/gtx/normalize_dot.hpp new file mode 100644 index 0000000..de650d3 --- /dev/null +++ b/depedencies/include/glm/gtx/normalize_dot.hpp @@ -0,0 +1,45 @@ +/// @ref gtx_normalize_dot +/// @file glm/gtx/normalize_dot.hpp +/// +/// @see core (dependence) +/// @see gtx_fast_square_root (dependence) +/// +/// @defgroup gtx_normalize_dot GLM_GTX_normalize_dot +/// @ingroup gtx +/// +/// @brief Dot product of vectors that need to be normalize with a single square root. +/// +/// need to be included to use these functionalities. + +#pragma once + +// Dependency: +#include "../gtx/fast_square_root.hpp" + +#if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED) +# pragma message("GLM: GLM_GTX_normalize_dot extension included") +#endif + +namespace glm +{ + /// @addtogroup gtx_normalize_dot + /// @{ + + /// Normalize parameters and returns the dot product of x and y. + /// It's faster that dot(normalize(x), normalize(y)). + /// + /// @see gtx_normalize_dot extension. + template class vecType> + GLM_FUNC_DECL T normalizeDot(vecType const & x, vecType const & y); + + /// Normalize parameters and returns the dot product of x and y. + /// Faster that dot(fastNormalize(x), fastNormalize(y)). + /// + /// @see gtx_normalize_dot extension. + template class vecType> + GLM_FUNC_DECL T fastNormalizeDot(vecType const & x, vecType const & y); + + /// @} +}//namespace glm + +#include "normalize_dot.inl" -- cgit v1.2.3