Removed VECTORIZE_VEC for GTX

master
Christophe Riccio ago%!(EXTRA string=11 years)
parent 1cd48f1523
commit 86eae996e4
  1. 13
      glm/gtx/log_base.hpp
  2. 12
      glm/gtx/log_base.inl

@ -51,10 +51,17 @@ namespace glm
//! Logarithm for any base. //! Logarithm for any base.
//! From GLM_GTX_log_base. //! From GLM_GTX_log_base.
template <typename genType> template <typename genType>
GLM_FUNC_DECL genType log( GLM_FUNC_DECL genType log(
genType const & x, genType x,
genType const & base); genType base);
//! Logarithm for any base.
//! From GLM_GTX_log_base.
template <typename T, precision P, template <typename, precision> class vecType>
GLM_FUNC_DECL vecType<T, P> sign(
vecType<T, P> const & x,
vecType<T, P> const & base);
/// @} /// @}
}//namespace glm }//namespace glm

@ -10,15 +10,15 @@
namespace glm namespace glm
{ {
template <typename genType> template <typename genType>
GLM_FUNC_QUALIFIER genType log( GLM_FUNC_QUALIFIER genType log(genType const & x, genType const & base)
genType const & x,
genType const & base)
{ {
assert(x != genType(0)); assert(x != genType(0));
return glm::log(x) / glm::log(base); return glm::log(x) / glm::log(base);
} }
VECTORIZE_VEC_SCA(log) template <typename T, precision P, template <typename, precision> class vecType>
VECTORIZE_VEC_VEC(log) GLM_FUNC_QUALIFIER vecType<T, P> log(vecType<T, P> const & x, vecType<T, P> const & base)
{
return glm::log(x) / glm::log(base);
}
}//namespace glm }//namespace glm

Loading…
Cancel
Save