plumageRender/3rdparty/glm/gtx/log_base.inl

17 lines
379 B
Plaintext
Raw Normal View History

2023-05-17 14:49:05 +08:00
/// @ref gtx_log_base
namespace glm
{
2025-02-15 20:55:58 +08:00
template<typename genType>
2023-06-07 10:52:04 +08:00
GLM_FUNC_QUALIFIER genType log(genType const& x, genType const& base)
2023-05-17 14:49:05 +08:00
{
return glm::log(x) / glm::log(base);
}
2023-06-07 10:52:04 +08:00
template<length_t L, typename T, qualifier Q>
GLM_FUNC_QUALIFIER vec<L, T, Q> log(vec<L, T, Q> const& x, vec<L, T, Q> const& base)
2023-05-17 14:49:05 +08:00
{
return glm::log(x) / glm::log(base);
}
}//namespace glm