Removed VECTORIZE_VEC for GTX

This commit is contained in:
Christophe Riccio 2014-11-01 00:21:10 +01:00
parent 1cd48f1523
commit 86eae996e4
2 changed files with 16 additions and 9 deletions

View File

@ -53,8 +53,15 @@ namespace glm
//! 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

View File

@ -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