Collection of DPF-based plugins for packaging
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
487B

  1. /// @ref gtx_log_base
  2. /// @file glm/gtx/log_base.inl
  3. namespace glm
  4. {
  5. template<typename genType>
  6. GLM_FUNC_QUALIFIER genType log(genType const& x, genType const& base)
  7. {
  8. assert(!detail::compute_equal<genType>::call(x, static_cast<genType>(0)));
  9. return glm::log(x) / glm::log(base);
  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