summaryrefslogtreecommitdiff
path: root/src/glm/gtx/log_base.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/glm/gtx/log_base.hpp')
-rw-r--r--src/glm/gtx/log_base.hpp47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/glm/gtx/log_base.hpp b/src/glm/gtx/log_base.hpp
new file mode 100644
index 0000000..d30d822
--- /dev/null
+++ b/src/glm/gtx/log_base.hpp
@@ -0,0 +1,47 @@
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// OpenGL Mathematics Copyright (c) 2005 - 2011 G-Truc Creation (www.g-truc.net)
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// Created : 2008-10-24
+// Updated : 2008-10-24
+// Licence : This source is under MIT License
+// File : glm/gtx/log_base.hpp
+///////////////////////////////////////////////////////////////////////////////////////////////////
+// Dependency:
+// - GLM core
+///////////////////////////////////////////////////////////////////////////////////////////////////
+
+#ifndef glm_gtx_log_base
+#define glm_gtx_log_base
+
+// Dependency:
+#include "../glm.hpp"
+
+#if(defined(GLM_MESSAGES) && !defined(glm_ext))
+# pragma message("GLM: GLM_GTX_log_base extension included")
+#endif
+
+namespace glm{
+namespace gtx{
+namespace log_base ///< GLM_GTX_log_base extension: Logarithm for any base. base can be a vector or a scalar.
+{
+ /// \addtogroup gtx_log_base
+ /// @{
+
+ //! Logarithm for any base.
+ //! From GLM_GTX_log_base.
+ template <typename genType>
+ genType log(
+ genType const & x,
+ genType const & base);
+
+ /// @}
+
+}//namespace extend
+}//namespace gtx
+}//namespace glm
+
+#include "log_base.inl"
+
+namespace glm{using namespace gtx::log_base;}
+
+#endif//glm_gtx_log_base