1/// @ref gtx_log_base 2/// @file glm/gtx/log_base.inl 3 4namespace glm 5{ 6 template <typename genType> 7 GLM_FUNC_QUALIFIER genType log(genType const & x, genType const & base) 8 { 9 assert(x != genType(0)); 10 return glm::log(x) / glm::log(base); 11 } 12 13 template <typename T, precision P, template <typename, precision> class vecType> 14 GLM_FUNC_QUALIFIER vecType<T, P> log(vecType<T, P> const & x, vecType<T, P> const & base) 15 { 16 return glm::log(x) / glm::log(base); 17 } 18}//namespace glm 19