GLM  0.9.5
func_trigonometric.hpp
1 
40 #ifndef GLM_CORE_func_trigonometric
41 #define GLM_CORE_func_trigonometric
42 
43 namespace glm
44 {
47 
54  template <typename genType>
55  GLM_FUNC_DECL genType radians(genType const & degrees);
56 
63  template <typename genType>
64  GLM_FUNC_DECL genType degrees(genType const & radians);
65 
73  template <typename genType>
74  GLM_FUNC_DECL genType sin(genType const & angle);
75 
83  template <typename genType>
84  GLM_FUNC_DECL genType cos(genType const & angle);
85 
92  template <typename genType>
93  GLM_FUNC_DECL genType tan(genType const & angle);
94 
103  template <typename genType>
104  GLM_FUNC_DECL genType asin(genType const & x);
105 
114  template <typename genType>
115  GLM_FUNC_DECL genType acos(genType const & x);
116 
127  template <typename genType>
128  GLM_FUNC_DECL genType atan(genType const & y, genType const & x);
129 
137  template <typename genType>
138  GLM_FUNC_DECL genType atan(genType const & y_over_x);
139 
146  template <typename genType>
147  GLM_FUNC_DECL genType sinh(genType const & angle);
148 
155  template <typename genType>
156  GLM_FUNC_DECL genType cosh(genType const & angle);
157 
164  template <typename genType>
165  GLM_FUNC_DECL genType tanh(genType const & angle);
166 
173  template <typename genType>
174  GLM_FUNC_DECL genType asinh(genType const & x);
175 
183  template <typename genType>
184  GLM_FUNC_DECL genType acosh(genType const & x);
185 
193  template <typename genType>
194  GLM_FUNC_DECL genType atanh(genType const & x);
195 
197 }//namespace glm
198 
199 #include "func_trigonometric.inl"
200 
201 #endif//GLM_CORE_func_trigonometric
202 
203 
GLM_FUNC_DECL genType sinh(genType const &angle)
Returns the hyperbolic sine function, (exp(x) - exp(-x)) / 2.
GLM_FUNC_DECL genType cos(genType const &angle)
The standard trigonometric cosine function.
GLM_FUNC_DECL genType atan(genType const &y, genType const &x)
Arc tangent.
GLM_FUNC_DECL T angle(detail::tquat< T, P > const &x)
Returns the quaternion rotation angle.
GLM_FUNC_DECL genType radians(genType const &degrees)
Converts degrees to radians and returns the result.
GLM_FUNC_DECL genType tanh(genType const &angle)
Returns the hyperbolic tangent function, sinh(angle) / cosh(angle)
GLM_FUNC_DECL genType acos(genType const &x)
Arc cosine.
GLM_FUNC_DECL genType sin(genType const &angle)
The standard trigonometric sine function.
GLM_FUNC_DECL genType cosh(genType const &angle)
Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2.
GLM_FUNC_DECL genType tan(genType const &angle)
The standard trigonometric tangent function.
GLM_FUNC_DECL genType acosh(genType const &x)
Arc hyperbolic cosine; returns the non-negative inverse of cosh.
GLM_FUNC_DECL genType asinh(genType const &x)
Arc hyperbolic sine; returns the inverse of sinh.
GLM_FUNC_DECL genType asin(genType const &x)
Arc sine.
GLM_FUNC_DECL genType degrees(genType const &radians)
Converts radians to degrees and returns the result.
GLM_FUNC_DECL genType atanh(genType const &x)
Arc hyperbolic tangent; returns the inverse of tanh.