diff options
Diffstat (limited to 'external/include/glm/gtx/log_base.inl')
-rw-r--r-- | external/include/glm/gtx/log_base.inl | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/external/include/glm/gtx/log_base.inl b/external/include/glm/gtx/log_base.inl new file mode 100644 index 0000000..8005d1b --- /dev/null +++ b/external/include/glm/gtx/log_base.inl @@ -0,0 +1,18 @@ +/// @ref gtx_log_base +/// @file glm/gtx/log_base.inl + +namespace glm +{ + template <typename genType> + GLM_FUNC_QUALIFIER genType log(genType const & x, genType const & base) + { + assert(x != genType(0)); + return glm::log(x) / glm::log(base); + } + + template <typename T, precision P, template <typename, precision> class vecType> + GLM_FUNC_QUALIFIER vecType<T, P> log(vecType<T, P> const & x, vecType<T, P> const & base) + { + return glm::log(x) / glm::log(base); + } +}//namespace glm |