diff --git a/glm/gtx/log_base.hpp b/glm/gtx/log_base.hpp index 7662ed04..ce9fabe7 100644 --- a/glm/gtx/log_base.hpp +++ b/glm/gtx/log_base.hpp @@ -51,10 +51,17 @@ namespace glm //! Logarithm for any base. //! From GLM_GTX_log_base. - template + template GLM_FUNC_DECL genType log( - genType const & x, - genType const & base); + genType x, + genType base); + + //! Logarithm for any base. + //! From GLM_GTX_log_base. + template class vecType> + GLM_FUNC_DECL vecType sign( + vecType const & x, + vecType const & base); /// @} }//namespace glm diff --git a/glm/gtx/log_base.inl b/glm/gtx/log_base.inl index 293a8fca..d0b0e6a9 100644 --- a/glm/gtx/log_base.inl +++ b/glm/gtx/log_base.inl @@ -10,15 +10,15 @@ namespace glm { template - GLM_FUNC_QUALIFIER genType log( - genType const & x, - genType const & base) + GLM_FUNC_QUALIFIER genType log(genType const & x, genType const & base) { assert(x != genType(0)); - return glm::log(x) / glm::log(base); } - VECTORIZE_VEC_SCA(log) - VECTORIZE_VEC_VEC(log) + template class vecType> + GLM_FUNC_QUALIFIER vecType log(vecType const & x, vecType const & base) + { + return glm::log(x) / glm::log(base); + } }//namespace glm