1.0.0 API documentation
Loading...
Searching...
No Matches
log_base.hpp
Go to the documentation of this file.
1
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{
28
31 template<typename genType>
32 GLM_FUNC_DECL genType log(
33 genType const& x,
34 genType const& base);
35
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
44}//namespace glm
45
46#include "log_base.inl"
GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > sign(vec< L, T, Q > const &x)
Returns 1.0 if x > 0, 0.0 if x == 0, or -1.0 if x < 0.
GLM_FUNC_DECL vec< L, T, Q > log(vec< L, T, Q > const &v)
Returns the natural logarithm of v, i.e., returns the value y which satisfies the equation x = e^y.