GRK-2023/dependencies/glm/gtx/log_base.inl
Aleksander Burkowski f52499db19 Init
2023-01-15 19:33:53 +01:00

19 lines
481 B
C++

/// @ref gtx_log_base
/// @file glm/gtx/log_base.inl
namespace glm
{
template <typename genType>
GLM_FUNC_QUALIFIER genType log(genType const & x, genType const & base)
{
assert(x != genType(0));
return glm::log(x) / glm::log(base);
}
template <typename T, precision P, template <typename, precision> class vecType>
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