master
ブランチ master
ShaderPlayground / deps / glm / glm / gtx / log_base.inl
379 B、16行 生 Blame 履歴
1/// @ref gtx_log_base
2
3namespace glm
4{
5 template<typename genType>
6 GLM_FUNC_QUALIFIER genType log(genType const& x, genType const& base)
7 {
8 return glm::log(x) / glm::log(base);
9 }
10
11 template<length_t L, typename T, qualifier Q>
12 GLM_FUNC_QUALIFIER vec<L, T, Q> log(vec<L, T, Q> const& x, vec<L, T, Q> const& base)
13 {
14 return glm::log(x) / glm::log(base);
15 }
16}//namespace glm