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.

24 lines
774 B

4 years ago
  1. ///////////////////////////////////////////////////////////////////////////////////////////////////
  2. // OpenGL Mathematics Copyright (c) 2005 - 2013 G-Truc Creation (www.g-truc.net)
  3. ///////////////////////////////////////////////////////////////////////////////////////////////////
  4. // Created : 2008-10-24
  5. // Updated : 2008-10-24
  6. // Licence : This source is under MIT License
  7. // File : glm/gtx/log_base.inl
  8. ///////////////////////////////////////////////////////////////////////////////////////////////////
  9. namespace glm
  10. {
  11. template <typename genType>
  12. GLM_FUNC_QUALIFIER genType log(
  13. genType const & x,
  14. genType const & base)
  15. {
  16. assert(x != genType(0));
  17. return glm::log(x) / glm::log(base);
  18. }
  19. VECTORIZE_VEC_SCA(log)
  20. VECTORIZE_VEC_VEC(log)
  21. }//namespace glm