| 0.9.7

- Main Page
- Modules
- Files

- File List

fast_trigonometry.hpp
Go to the documentation of this file.
1
42 #pragma once
43
44 // Dependency:
45 #include "../gtc/constants.hpp"
46
47 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
48 # pragma message("GLM: GLM_GTX_fast_trigonometry extension included")
49 #endif
50
51 namespace glm
52 {
55
58 template <typename T>
59 GLM_FUNC_DECL T wrapAngle(T angle);
60
63 template <typename T>
64 GLM_FUNC_DECL T fastSin(T angle);
65
68 template <typename T>
69 GLM_FUNC_DECL T fastCos(T angle);
70
74 template <typename T>
75 GLM_FUNC_DECL T fastTan(T angle);
76
80 template <typename T>
81 GLM_FUNC_DECL T fastAsin(T angle);
82
86 template <typename T>
87 GLM_FUNC_DECL T fastAcos(T angle);
88
92 template <typename T>
93 GLM_FUNC_DECL T fastAtan(T y, T x);
94
98 template <typename T>
99 GLM_FUNC_DECL T fastAtan(T angle);
100
102 }//namespace glm
103
104 #include "fast_trigonometry.inl"
glm::fastAtan
GLM_FUNC_DECL T fastAtan(T angle)
Faster than the common atan function but less accurate.
glm::fastAcos
GLM_FUNC_DECL T fastAcos(T angle)
Faster than the common acos function but less accurate.
glm
Definition: _noise.hpp:40
glm::fastCos
GLM_FUNC_DECL T fastCos(T angle)
Faster than the common cos function but less accurate.
glm::angle
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.
glm::fastSin
GLM_FUNC_DECL T fastSin(T angle)
Faster than the common sin function but less accurate.
glm::wrapAngle
GLM_FUNC_DECL T wrapAngle(T angle)
Wrap an angle to [0 2pi[ From GLM_GTX_fast_trigonometry extension.
glm::fastAsin
GLM_FUNC_DECL T fastAsin(T angle)
Faster than the common asin function but less accurate.
glm::fastTan
GLM_FUNC_DECL T fastTan(T angle)
Faster than the common tan function but less accurate.