0.9.6
func_trigonometric.hpp
Go to the documentation of this file.
1 
40 #pragma once
41 
42 #include "setup.hpp"
43 #include "precision.hpp"
44 
45 namespace glm
46 {
49 
56  template <typename T, precision P, template <typename, precision> class vecType>
57  GLM_FUNC_DECL vecType<T, P> radians(vecType<T, P> const & degrees);
58 
65  template <typename T, precision P, template <typename, precision> class vecType>
66  GLM_FUNC_DECL vecType<T, P> degrees(vecType<T, P> const & radians);
67 
75  template <typename T, precision P, template <typename, precision> class vecType>
76  GLM_FUNC_DECL vecType<T, P> sin(vecType<T, P> const & angle);
77 
85  template <typename T, precision P, template <typename, precision> class vecType>
86  GLM_FUNC_DECL vecType<T, P> cos(vecType<T, P> const & angle);
87 
94  template <typename T, precision P, template <typename, precision> class vecType>
95  GLM_FUNC_DECL vecType<T, P> tan(vecType<T, P> const & angle);
96 
105  template <typename T, precision P, template <typename, precision> class vecType>
106  GLM_FUNC_DECL vecType<T, P> asin(vecType<T, P> const & x);
107 
116  template <typename T, precision P, template <typename, precision> class vecType>
117  GLM_FUNC_DECL vecType<T, P> acos(vecType<T, P> const & x);
118 
129  template <typename T, precision P, template <typename, precision> class vecType>
130  GLM_FUNC_DECL vecType<T, P> atan(vecType<T, P> const & y, vecType<T, P> const & x);
131 
139  template <typename T, precision P, template <typename, precision> class vecType>
140  GLM_FUNC_DECL vecType<T, P> atan(vecType<T, P> const & y_over_x);
141 
148  template <typename T, precision P, template <typename, precision> class vecType>
149  GLM_FUNC_DECL vecType<T, P> sinh(vecType<T, P> const & angle);
150 
157  template <typename T, precision P, template <typename, precision> class vecType>
158  GLM_FUNC_DECL vecType<T, P> cosh(vecType<T, P> const & angle);
159 
166  template <typename T, precision P, template <typename, precision> class vecType>
167  GLM_FUNC_DECL vecType<T, P> tanh(vecType<T, P> const & angle);
168 
175  template <typename T, precision P, template <typename, precision> class vecType>
176  GLM_FUNC_DECL vecType<T, P> asinh(vecType<T, P> const & x);
177 
185  template <typename T, precision P, template <typename, precision> class vecType>
186  GLM_FUNC_DECL vecType<T, P> acosh(vecType<T, P> const & x);
187 
195  template <typename T, precision P, template <typename, precision> class vecType>
196  GLM_FUNC_DECL vecType<T, P> atanh(vecType<T, P> const & x);
197 
199 }//namespace glm
200 
201 #include "func_trigonometric.inl"
GLM_FUNC_DECL vecType< T, P > acosh(vecType< T, P > const &x)
Arc hyperbolic cosine; returns the non-negative inverse of cosh.
GLM_FUNC_DECL vecType< T, P > sin(vecType< T, P > const &angle)
The standard trigonometric sine function.
GLM_FUNC_DECL vecType< T, P > atan(vecType< T, P > const &y_over_x)
Arc tangent.
GLM_FUNC_DECL vecType< T, P > cosh(vecType< T, P > const &angle)
Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2.
Definition: _noise.hpp:31
OpenGL Mathematics (glm.g-truc.net)
GLM_FUNC_DECL vecType< T, P > asin(vecType< T, P > const &x)
Arc sine.
GLM_FUNC_DECL vecType< T, P > asinh(vecType< T, P > const &x)
Arc hyperbolic sine; returns the inverse of sinh.
GLM_FUNC_DECL vecType< T, P > atanh(vecType< T, P > const &x)
Arc hyperbolic tangent; returns the inverse of tanh.
GLM_FUNC_DECL vecType< T, P > sinh(vecType< T, P > const &angle)
Returns the hyperbolic sine function, (exp(x) - exp(-x)) / 2.
GLM_FUNC_DECL vecType< T, P > radians(vecType< T, P > const &degrees)
Converts degrees to radians and returns the result.
GLM_FUNC_DECL vecType< T, P > acos(vecType< T, P > const &x)
Arc cosine.
GLM_FUNC_DECL vecType< T, P > tanh(vecType< T, P > const &angle)
Returns the hyperbolic tangent function, sinh(angle) / cosh(angle)
GLM_FUNC_DECL vecType< T, P > degrees(vecType< T, P > const &radians)
Converts radians to degrees and returns the result.
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.
OpenGL Mathematics (glm.g-truc.net)
GLM_FUNC_DECL vecType< T, P > tan(vecType< T, P > const &angle)
The standard trigonometric tangent function.
GLM_FUNC_DECL vecType< T, P > cos(vecType< T, P > const &angle)
The standard trigonometric cosine function.