master
ブランチ master
ShaderPlayground / deps / glm / glm / gtx / log_base.hpp
1.1 KB、48行 生 Blame 履歴
1/// @ref gtx_log_base
2/// @file glm/gtx/log_base.hpp
3///
4/// @see core (dependence)
5///
6/// @defgroup gtx_log_base GLM_GTX_log_base
7/// @ingroup gtx
8///
9/// Include <glm/gtx/log_base.hpp> to use the features of this extension.
10///
11/// Logarithm for any base. base can be a vector or a scalar.
12
13#pragma once
14
15// Dependency:
16#include "../glm.hpp"
17
18#ifndef GLM_ENABLE_EXPERIMENTAL
19# error "GLM: GLM_GTX_log_base is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
20#endif
21
22#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
23# pragma message("GLM: GLM_GTX_log_base extension included")
24#endif
25
26namespace glm
27{
28 /// @addtogroup gtx_log_base
29 /// @{
30
31 /// Logarithm for any base.
32 /// From GLM_GTX_log_base.
33 template<typename genType>
34 GLM_FUNC_DECL genType log(
35 genType const& x,
36 genType const& base);
37
38 /// Logarithm for any base.
39 /// From GLM_GTX_log_base.
40 template<length_t L, typename T, qualifier Q>
41 GLM_FUNC_DECL vec<L, T, Q> sign(
42 vec<L, T, Q> const& x,
43 vec<L, T, Q> const& base);
44
45 /// @}
46}//namespace glm
47
48#include "log_base.inl"