1.0.0 API documentation: trigonometric.hpp Source File

| 1.0.0 API documentation

trigonometric.hpp
Go to the documentation of this file.
1
19 #pragma once
20
21 #include "detail/setup.hpp"
22 #include "detail/qualifier.hpp"
23
24 namespace glm
25 {
28
37 template<length_t L, typename T, qualifier Q>
38 GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> radians(vec<L, T, Q> const& degrees);
39
48 template<length_t L, typename T, qualifier Q>
49 GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> degrees(vec<L, T, Q> const& radians);
50
60 template<length_t L, typename T, qualifier Q>
61 GLM_FUNC_DECL vec<L, T, Q> sin(vec<L, T, Q> const& angle);
62
72 template<length_t L, typename T, qualifier Q>
73 GLM_FUNC_DECL vec<L, T, Q> cos(vec<L, T, Q> const& angle);
74
83 template<length_t L, typename T, qualifier Q>
84 GLM_FUNC_DECL vec<L, T, Q> tan(vec<L, T, Q> const& angle);
85
96 template<length_t L, typename T, qualifier Q>
97 GLM_FUNC_DECL vec<L, T, Q> asin(vec<L, T, Q> const& x);
98
109 template<length_t L, typename T, qualifier Q>
110 GLM_FUNC_DECL vec<L, T, Q> acos(vec<L, T, Q> const& x);
111
124 template<length_t L, typename T, qualifier Q>
125 GLM_FUNC_DECL vec<L, T, Q> atan(vec<L, T, Q> const& y, vec<L, T, Q> const& x);
126
136 template<length_t L, typename T, qualifier Q>
137 GLM_FUNC_DECL vec<L, T, Q> atan(vec<L, T, Q> const& y_over_x);
138
147 template<length_t L, typename T, qualifier Q>
148 GLM_FUNC_DECL vec<L, T, Q> sinh(vec<L, T, Q> const& angle);
149
158 template<length_t L, typename T, qualifier Q>
159 GLM_FUNC_DECL vec<L, T, Q> cosh(vec<L, T, Q> const& angle);
160
169 template<length_t L, typename T, qualifier Q>
170 GLM_FUNC_DECL vec<L, T, Q> tanh(vec<L, T, Q> const& angle);
171
180 template<length_t L, typename T, qualifier Q>
181 GLM_FUNC_DECL vec<L, T, Q> asinh(vec<L, T, Q> const& x);
182
192 template<length_t L, typename T, qualifier Q>
193 GLM_FUNC_DECL vec<L, T, Q> acosh(vec<L, T, Q> const& x);
194
204 template<length_t L, typename T, qualifier Q>
205 GLM_FUNC_DECL vec<L, T, Q> atanh(vec<L, T, Q> const& x);
206
208 }//namespace glm
209
210 #include "detail/func_trigonometric.inl"
glm::angle
GLM_FUNC_DECL T angle(qua< T, Q > const &x)
Returns the quaternion rotation angle.
glm::asin
GLM_FUNC_DECL vec< L, T, Q > asin(vec< L, T, Q > const &x)
Arc sine.
glm::tanh
GLM_FUNC_DECL vec< L, T, Q > tanh(vec< L, T, Q > const &angle)
Returns the hyperbolic tangent function, sinh(angle) / cosh(angle)
glm::degrees
GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > degrees(vec< L, T, Q > const &radians)
Converts radians to degrees and returns the result.
glm::acos
GLM_FUNC_DECL vec< L, T, Q > acos(vec< L, T, Q > const &x)
Arc cosine.
glm::acosh
GLM_FUNC_DECL vec< L, T, Q > acosh(vec< L, T, Q > const &x)
Arc hyperbolic cosine; returns the non-negative inverse of cosh.
glm::sinh
GLM_FUNC_DECL vec< L, T, Q > sinh(vec< L, T, Q > const &angle)
Returns the hyperbolic sine function, (exp(x) - exp(-x)) / 2.
glm::sin
GLM_FUNC_DECL vec< L, T, Q > sin(vec< L, T, Q > const &angle)
The standard trigonometric sine function.
glm::tan
GLM_FUNC_DECL vec< L, T, Q > tan(vec< L, T, Q > const &angle)
The standard trigonometric tangent function.
glm::atanh
GLM_FUNC_DECL vec< L, T, Q > atanh(vec< L, T, Q > const &x)
Arc hyperbolic tangent; returns the inverse of tanh.
glm::cosh
GLM_FUNC_DECL vec< L, T, Q > cosh(vec< L, T, Q > const &angle)
Returns the hyperbolic cosine function, (exp(x) + exp(-x)) / 2.
glm::cos
GLM_FUNC_DECL vec< L, T, Q > cos(vec< L, T, Q > const &angle)
The standard trigonometric cosine function.
glm::radians
GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > radians(vec< L, T, Q > const &degrees)
Converts degrees to radians and returns the result.
glm::atan
GLM_FUNC_DECL vec< L, T, Q > atan(vec< L, T, Q > const &y_over_x)
Arc tangent.
glm::asinh
GLM_FUNC_DECL vec< L, T, Q > asinh(vec< L, T, Q > const &x)
Arc hyperbolic sine; returns the inverse of sinh.