master
ブランチ master
VulkanExample / dep / include / glm / gtx / log_base.hpp
1.2 KB、46行 生 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#elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
21# pragma message("GLM: GLM_GTX_log_base extension included")
22#endif
23
24namespace glm
25{
26 /// @addtogroup gtx_log_base
27 /// @{
28
29 /// Logarithm for any base.
30 /// From GLM_GTX_log_base.
31 template<typename genType>
32 GLM_FUNC_DECL genType log(
33 genType const& x,
34 genType const& base);
35
36 /// Logarithm for any base.
37 /// From GLM_GTX_log_base.
38 template<length_t L, typename T, qualifier Q>
39 GLM_FUNC_DECL vec<L, T, Q> sign(
40 vec<L, T, Q> const& x,
41 vec<L, T, Q> const& base);
42
43 /// @}
44}//namespace glm
45
46#include "log_base.inl"