0.9.9 API documenation
func_trigonometric.hpp
Go to the documentation of this file.
1 
15 #pragma once
16 
17 #include "setup.hpp"
18 #include "qualifier.hpp"
19 
20 namespace glm
21 {
24 
33  template<length_t L, typename T, qualifier P>
34  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, P> radians(vec<L, T, P> const& degrees);
35 
44  template<length_t L, typename T, qualifier P>
45  GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, P> degrees(vec<L, T, P> const& radians);
46 
56  template<length_t L, typename T, qualifier P>
57  GLM_FUNC_DECL vec<L, T, P> sin(vec<L, T, P> const& angle);
58 
68  template<length_t L, typename T, qualifier P>
69  GLM_FUNC_DECL vec<L, T, P> cos(vec<L, T, P> const& angle);
70 
79  template<length_t L, typename T, qualifier P>
80  GLM_FUNC_DECL vec<L, T, P> tan(vec<L, T, P> const& angle);
81 
92  template<length_t L, typename T, qualifier P>
93  GLM_FUNC_DECL vec<L, T, P> asin(vec<L, T, P> const& x);
94 
105  template<length_t L, typename T, qualifier P>
106  GLM_FUNC_DECL vec<L, T, P> acos(vec<L, T, P> const& x);
107 
120  template<length_t L, typename T, qualifier P>
121  GLM_FUNC_DECL vec<L, T, P> atan(vec<L, T, P> const& y, vec<L, T, P> const& x);
122 
132  template<length_t L, typename T, qualifier P>
133  GLM_FUNC_DECL vec<L, T, P> atan(vec<L, T, P> const& y_over_x);
134 
143  template<length_t L, typename T, qualifier P>
144  GLM_FUNC_DECL vec<L, T, P> sinh(vec<L, T, P> const& angle);
145 
154  template<length_t L, typename T, qualifier P>
155  GLM_FUNC_DECL vec<L, T, P> cosh(vec<L, T, P> const& angle);
156 
165  template<length_t L, typename T, qualifier P>
166  GLM_FUNC_DECL vec<L, T, P> tanh(vec<L, T, P> const& angle);
167 
176  template<length_t L, typename T, qualifier P>
177  GLM_FUNC_DECL vec<L, T, P> asinh(vec<L, T, P> const& x);
178 
188  template<length_t L, typename T, qualifier P>
189  GLM_FUNC_DECL vec<L, T, P> acosh(vec<L, T, P> const& x);
190 
200  template<length_t L, typename T, qualifier P>
201  GLM_FUNC_DECL vec<L, T, P> atanh(vec<L, T, P> const& x);
202 
204 }//namespace glm
205 
206 #include "func_trigonometric.inl"
GLM_FUNC_DECL vec< L, T, P > acosh(vec< L, T, P > const &x)
Arc hyperbolic cosine; returns the non-negative inverse of cosh.
GLM_FUNC_DECL vec< L, T, P > atanh(vec< L, T, P > const &x)
Arc hyperbolic tangent; returns the inverse of tanh.
GLM_FUNC_DECL vec< L, T, P > asin(vec< L, T, P > const &x)
Arc sine.
GLM_FUNC_DECL vec< L, T, P > cosh(vec< L, T, P > const &angle)
Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2.
GLM_FUNC_DECL vec< L, T, P > asinh(vec< L, T, P > const &x)
Arc hyperbolic sine; returns the inverse of sinh.
Definition: _noise.hpp:11
GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, P > degrees(vec< L, T, P > const &radians)
Converts radians to degrees and returns the result.
GLM_FUNC_DECL vec< L, T, P > tanh(vec< L, T, P > const &angle)
Returns the hyperbolic tangent function, sinh(angle) / cosh(angle)
GLM_FUNC_DECL vec< L, T, P > atan(vec< L, T, P > const &y_over_x)
Arc tangent.
GLM Core
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.
GLM_FUNC_DECL vec< L, T, P > acos(vec< L, T, P > const &x)
Arc cosine.
GLM_FUNC_DECL vec< L, T, P > tan(vec< L, T, P > const &angle)
The standard trigonometric tangent function.
GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, P > radians(vec< L, T, P > const &degrees)
Converts degrees to radians and returns the result.
GLM_FUNC_DECL vec< L, T, P > cos(vec< L, T, P > const &angle)
The standard trigonometric cosine function.
GLM_FUNC_DECL vec< L, T, P > sinh(vec< L, T, P > const &angle)
Returns the hyperbolic sine function, (exp(x) - exp(-x)) / 2.
GLM_FUNC_DECL vec< L, T, P > sin(vec< L, T, P > const &angle)
The standard trigonometric sine function.
GLM Core