0.9.9 API documenation

- Main Page
- Modules
- Files

- File List

trigonometric.hpp
Go to the documentation of this file.
1
17 #pragma once
18
19 #include "detail/setup.hpp"
20 #include "detail/qualifier.hpp"
21
22 namespace glm
23 {
26
35 template<length_t L, typename T, qualifier Q>
36 GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> radians(vec<L, T, Q> const& degrees);
37
46 template<length_t L, typename T, qualifier Q>
47 GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> degrees(vec<L, T, Q> const& radians);
48
58 template<length_t L, typename T, qualifier Q>
59 GLM_FUNC_DECL vec<L, T, Q> sin(vec<L, T, Q> const& angle);
60
70 template<length_t L, typename T, qualifier Q>
71 GLM_FUNC_DECL vec<L, T, Q> cos(vec<L, T, Q> const& angle);
72
81 template<length_t L, typename T, qualifier Q>
82 GLM_FUNC_DECL vec<L, T, Q> tan(vec<L, T, Q> const& angle);
83
94 template<length_t L, typename T, qualifier Q>
95 GLM_FUNC_DECL vec<L, T, Q> asin(vec<L, T, Q> const& x);
96
107 template<length_t L, typename T, qualifier Q>
108 GLM_FUNC_DECL vec<L, T, Q> acos(vec<L, T, Q> const& x);
109
122 template<length_t L, typename T, qualifier Q>
123 GLM_FUNC_DECL vec<L, T, Q> atan(vec<L, T, Q> const& y, vec<L, T, Q> const& x);
124
134 template<length_t L, typename T, qualifier Q>
135 GLM_FUNC_DECL vec<L, T, Q> atan(vec<L, T, Q> const& y_over_x);
136
145 template<length_t L, typename T, qualifier Q>
146 GLM_FUNC_DECL vec<L, T, Q> sinh(vec<L, T, Q> const& angle);
147
156 template<length_t L, typename T, qualifier Q>
157 GLM_FUNC_DECL vec<L, T, Q> cosh(vec<L, T, Q> const& angle);
158
167 template<length_t L, typename T, qualifier Q>
168 GLM_FUNC_DECL vec<L, T, Q> tanh(vec<L, T, Q> const& angle);
169
178 template<length_t L, typename T, qualifier Q>
179 GLM_FUNC_DECL vec<L, T, Q> asinh(vec<L, T, Q> const& x);
180
190 template<length_t L, typename T, qualifier Q>
191 GLM_FUNC_DECL vec<L, T, Q> acosh(vec<L, T, Q> const& x);
192
202 template<length_t L, typename T, qualifier Q>
203 GLM_FUNC_DECL vec<L, T, Q> atanh(vec<L, T, Q> const& x);
204
206 }//namespace glm
207
208 #include "detail/func_trigonometric.inl"
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::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::asinh
GLM_FUNC_DECL vec< L, T, Q > asinh(vec< L, T, Q > const &x)
Arc hyperbolic sine; returns the inverse of sinh.
glm
Definition: common.hpp:20
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::tanh
GLM_FUNC_DECL vec< L, T, Q > tanh(vec< L, T, Q > const &angle)
Returns the hyperbolic tangent function, sinh(angle) / cosh(angle)
qualifier.hpp
Core features
glm::sin
GLM_FUNC_DECL vec< L, T, Q > sin(vec< L, T, Q > const &angle)
The standard trigonometric sine function.
glm::acos
GLM_FUNC_DECL vec< L, T, Q > acos(vec< L, T, Q > const &x)
Arc cosine.
glm::angle
GLM_FUNC_DECL T angle(tquat< T, Q > const &x)
Returns the quaternion rotation angle.
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::atan
GLM_FUNC_DECL vec< L, T, Q > atan(vec< L, T, Q > const &y_over_x)
Arc tangent.
glm::cos
GLM_FUNC_DECL vec< L, T, Q > cos(vec< L, T, Q > const &angle)
The standard trigonometric cosine function.
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::tan
GLM_FUNC_DECL vec< L, T, Q > tan(vec< L, T, Q > const &angle)
The standard trigonometric tangent function.
glm::asin
GLM_FUNC_DECL vec< L, T, Q > asin(vec< L, T, Q > const &x)
Arc sine.
setup.hpp
Core features
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.