log_base.inl 379 B

12345678910111213141516
  1. /// @ref gtx_log_base
  2. namespace glm
  3. {
  4. template<typename genType>
  5. GLM_FUNC_QUALIFIER genType log(genType const& x, genType const& base)
  6. {
  7. return glm::log(x) / glm::log(base);
  8. }
  9. template<length_t L, typename T, qualifier Q>
  10. GLM_FUNC_QUALIFIER vec<L, T, Q> log(vec<L, T, Q> const& x, vec<L, T, Q> const& base)
  11. {
  12. return glm::log(x) / glm::log(base);
  13. }
  14. }//namespace glm