| 0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

func_trigonometric.hpp
Go to the documentation of this file.
1
15 #pragma once
16
17 #include "setup.hpp"
18 #include "precision.hpp"
19
20 namespace glm
21 {
24
31 template <typename T, precision P, template <typename, precision> class vecType>
32 GLM_FUNC_DECL GLM_CONSTEXPR vecType<T, P> radians(vecType<T, P> const & degrees);
33
40 template <typename T, precision P, template <typename, precision> class vecType>
41 GLM_FUNC_DECL GLM_CONSTEXPR vecType<T, P> degrees(vecType<T, P> const & radians);
42
50 template <typename T, precision P, template <typename, precision> class vecType>
51 GLM_FUNC_DECL vecType<T, P> sin(vecType<T, P> const & angle);
52
60 template <typename T, precision P, template <typename, precision> class vecType>
61 GLM_FUNC_DECL vecType<T, P> cos(vecType<T, P> const & angle);
62
69 template <typename T, precision P, template <typename, precision> class vecType>
70 GLM_FUNC_DECL vecType<T, P> tan(vecType<T, P> const & angle);
71
80 template <typename T, precision P, template <typename, precision> class vecType>
81 GLM_FUNC_DECL vecType<T, P> asin(vecType<T, P> const & x);
82
91 template <typename T, precision P, template <typename, precision> class vecType>
92 GLM_FUNC_DECL vecType<T, P> acos(vecType<T, P> const & x);
93
104 template <typename T, precision P, template <typename, precision> class vecType>
105 GLM_FUNC_DECL vecType<T, P> atan(vecType<T, P> const & y, vecType<T, P> const & x);
106
114 template <typename T, precision P, template <typename, precision> class vecType>
115 GLM_FUNC_DECL vecType<T, P> atan(vecType<T, P> const & y_over_x);
116
123 template <typename T, precision P, template <typename, precision> class vecType>
124 GLM_FUNC_DECL vecType<T, P> sinh(vecType<T, P> const & angle);
125
132 template <typename T, precision P, template <typename, precision> class vecType>
133 GLM_FUNC_DECL vecType<T, P> cosh(vecType<T, P> const & angle);
134
141 template <typename T, precision P, template <typename, precision> class vecType>
142 GLM_FUNC_DECL vecType<T, P> tanh(vecType<T, P> const & angle);
143
150 template <typename T, precision P, template <typename, precision> class vecType>
151 GLM_FUNC_DECL vecType<T, P> asinh(vecType<T, P> const & x);
152
160 template <typename T, precision P, template <typename, precision> class vecType>
161 GLM_FUNC_DECL vecType<T, P> acosh(vecType<T, P> const & x);
162
170 template <typename T, precision P, template <typename, precision> class vecType>
171 GLM_FUNC_DECL vecType<T, P> atanh(vecType<T, P> const & x);
172
174 }//namespace glm
175
176 #include "func_trigonometric.inl"
glm::atan
GLM_FUNC_DECL vecType< T, P > atan(vecType< T, P > const &y_over_x)
Arc tangent.
glm::asin
GLM_FUNC_DECL vecType< T, P > asin(vecType< T, P > const &x)
Arc sine.
glm::atanh
GLM_FUNC_DECL vecType< T, P > atanh(vecType< T, P > const &x)
Arc hyperbolic tangent; returns the inverse of tanh.
glm::sinh
GLM_FUNC_DECL vecType< T, P > sinh(vecType< T, P > const &angle)
Returns the hyperbolic sine function, (exp(x) - exp(-x)) / 2.
glm::cosh
GLM_FUNC_DECL vecType< T, P > cosh(vecType< T, P > const &angle)
Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2.
glm::asinh
GLM_FUNC_DECL vecType< T, P > asinh(vecType< T, P > const &x)
Arc hyperbolic sine; returns the inverse of sinh.
glm::acos
GLM_FUNC_DECL vecType< T, P > acos(vecType< T, P > const &x)
Arc cosine.
glm::cos
GLM_FUNC_DECL vecType< T, P > cos(vecType< T, P > const &angle)
The standard trigonometric cosine function.
glm::degrees
GLM_FUNC_DECL GLM_CONSTEXPR vecType< T, P > degrees(vecType< T, P > const &radians)
Converts radians to degrees and returns the result.
glm::radians
GLM_FUNC_DECL GLM_CONSTEXPR vecType< T, P > radians(vecType< T, P > const &degrees)
Converts degrees to radians and returns the result.
setup.hpp
GLM Core
glm::tan
GLM_FUNC_DECL vecType< T, P > tan(vecType< T, P > const &angle)
The standard trigonometric tangent function.
glm::tanh
GLM_FUNC_DECL vecType< T, P > tanh(vecType< T, P > const &angle)
Returns the hyperbolic tangent function, sinh(angle) / cosh(angle)
glm::acosh
GLM_FUNC_DECL vecType< T, P > acosh(vecType< T, P > const &x)
Arc hyperbolic cosine; returns the non-negative inverse of cosh.
glm::sin
GLM_FUNC_DECL vecType< T, P > sin(vecType< T, P > const &angle)
The standard trigonometric sine function.
glm
Definition: _noise.hpp:11
precision.hpp
GLM Core
glm::angle
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.