0.9.9 API documentation
Loading...
Searching...
No Matches
quaternion_exponential.hpp
Go to the documentation of this file.
1
14
15#pragma once
16
17// Dependency:
18#include "../common.hpp"
19#include "../trigonometric.hpp"
20#include "../geometric.hpp"
21#include "../ext/scalar_constants.hpp"
22
23#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
24# pragma message("GLM: GLM_EXT_quaternion_exponential extension included")
25#endif
26
27namespace glm
28{
31
36 template<typename T, qualifier Q>
37 GLM_FUNC_DECL qua<T, Q> exp(qua<T, Q> const& q);
38
43 template<typename T, qualifier Q>
44 GLM_FUNC_DECL qua<T, Q> log(qua<T, Q> const& q);
45
50 template<typename T, qualifier Q>
51 GLM_FUNC_DECL qua<T, Q> pow(qua<T, Q> const& q, T y);
52
57 template<typename T, qualifier Q>
58 GLM_FUNC_DECL qua<T, Q> sqrt(qua<T, Q> const& q);
59
61} //namespace glm
62
63#include "quaternion_exponential.inl"
GLM_FUNC_DECL vec< L, T, Q > sqrt(vec< L, T, Q > const &v)
Returns the positive square root of v.
GLM_FUNC_DECL vec< L, T, Q > pow(vec< L, T, Q > const &base, vec< L, T, Q > const &exponent)
Returns 'base' raised to the power 'exponent'.
GLM_FUNC_DECL vec< L, T, Q > exp(vec< L, T, Q > const &v)
Returns the natural exponentiation of x, i.e., e^x.
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.