| 0.9.6

- Main Page
- Modules
- Files

- File List

func_trigonometric.hpp
Go to the documentation of this file.
1
44 #pragma once
45
46 #include "setup.hpp"
47 #include "precision.hpp"
48
49 namespace glm
50 {
53
60 template <typename T, precision P, template <typename, precision> class vecType>
61 GLM_FUNC_DECL vecType<T, P> radians(vecType<T, P> const & degrees);
62
69 template <typename T, precision P, template <typename, precision> class vecType>
70 GLM_FUNC_DECL vecType<T, P> degrees(vecType<T, P> const & radians);
71
79 template <typename T, precision P, template <typename, precision> class vecType>
80 GLM_FUNC_DECL vecType<T, P> sin(vecType<T, P> const & angle);
81
89 template <typename T, precision P, template <typename, precision> class vecType>
90 GLM_FUNC_DECL vecType<T, P> cos(vecType<T, P> const & angle);
91
98 template <typename T, precision P, template <typename, precision> class vecType>
99 GLM_FUNC_DECL vecType<T, P> tan(vecType<T, P> const & angle);
100
109 template <typename T, precision P, template <typename, precision> class vecType>
110 GLM_FUNC_DECL vecType<T, P> asin(vecType<T, P> const & x);
111
120 template <typename T, precision P, template <typename, precision> class vecType>
121 GLM_FUNC_DECL vecType<T, P> acos(vecType<T, P> const & x);
122
133 template <typename T, precision P, template <typename, precision> class vecType>
134 GLM_FUNC_DECL vecType<T, P> atan(vecType<T, P> const & y, vecType<T, P> const & x);
135
143 template <typename T, precision P, template <typename, precision> class vecType>
144 GLM_FUNC_DECL vecType<T, P> atan(vecType<T, P> const & y_over_x);
145
152 template <typename T, precision P, template <typename, precision> class vecType>
153 GLM_FUNC_DECL vecType<T, P> sinh(vecType<T, P> const & angle);
154
161 template <typename T, precision P, template <typename, precision> class vecType>
162 GLM_FUNC_DECL vecType<T, P> cosh(vecType<T, P> const & angle);
163
170 template <typename T, precision P, template <typename, precision> class vecType>
171 GLM_FUNC_DECL vecType<T, P> tanh(vecType<T, P> const & angle);
172
179 template <typename T, precision P, template <typename, precision> class vecType>
180 GLM_FUNC_DECL vecType<T, P> asinh(vecType<T, P> const & x);
181
189 template <typename T, precision P, template <typename, precision> class vecType>
190 GLM_FUNC_DECL vecType<T, P> acosh(vecType<T, P> const & x);
191
199 template <typename T, precision P, template <typename, precision> class vecType>
200 GLM_FUNC_DECL vecType<T, P> atanh(vecType<T, P> const & x);
201
203 }//namespace glm
204
205 #include "func_trigonometric.inl"
glm::acos
GLM_FUNC_DECL vecType< T, P > acos(vecType< T, P > const &x)
Arc cosine.
glm::tanh
GLM_FUNC_DECL vecType< T, P > tanh(vecType< T, P > const &angle)
Returns the hyperbolic tangent function, sinh(angle) / cosh(angle)
glm::cosh
GLM_FUNC_DECL vecType< T, P > cosh(vecType< T, P > const &angle)
Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2.
precision.hpp
OpenGL Mathematics (glm.g-truc.net)
glm::asinh
GLM_FUNC_DECL vecType< T, P > asinh(vecType< T, P > const &x)
Arc hyperbolic sine; returns the inverse of sinh.
glm::radians
GLM_FUNC_DECL vecType< T, P > radians(vecType< T, P > const &degrees)
Converts degrees to radians and returns the result.
glm::cos
GLM_FUNC_DECL vecType< T, P > cos(vecType< T, P > const &angle)
The standard trigonometric cosine function.
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::degrees
GLM_FUNC_DECL vecType< T, P > degrees(vecType< T, P > const &radians)
Converts radians to degrees and returns the result.
glm::sin
GLM_FUNC_DECL vecType< T, P > sin(vecType< T, P > const &angle)
The standard trigonometric sine function.
glm::angle
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.
glm::tan
GLM_FUNC_DECL vecType< T, P > tan(vecType< T, P > const &angle)
The standard trigonometric tangent function.
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
Definition: _noise.hpp:39
glm::atanh
GLM_FUNC_DECL vecType< T, P > atanh(vecType< T, P > const &x)
Arc hyperbolic tangent; returns the inverse of tanh.
setup.hpp
OpenGL Mathematics (glm.g-truc.net)
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.