GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

fast_trigonometry.hpp
Go to the documentation of this file.
1
38 #ifndef GLM_GTX_fast_trigonometry
39 #define GLM_GTX_fast_trigonometry
40
41 // Dependency:
42 #include "../glm.hpp"
43
44 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
45 # pragma message("GLM: GLM_GTX_fast_trigonometry extension included")
46 #endif
47
48 namespace glm
49 {
52
56 template <typename T>
57 T fastSin(const T& angle);
58
62 template <typename T>
63 T fastCos(const T& angle);
64
68 template <typename T>
69 T fastTan(const T& angle);
70
74 template <typename T>
75 T fastAsin(const T& angle);
76
80 template <typename T>
81 T fastAcos(const T& angle);
82
86 template <typename T>
87 T fastAtan(const T& y, const T& x);
88
92 template <typename T>
93 T fastAtan(const T& angle);
94
96 }//namespace glm
97
98 #include "fast_trigonometry.inl"
99
100 #endif//GLM_GTX_fast_trigonometry
glm::fastAcos
T fastAcos(const T &angle)
Faster than the common acos function but less accurate.
glm::fastAtan
T fastAtan(const T &y, const T &x)
Faster than the common atan function but less accurate.
glm::angle
GLM_FUNC_DECL T angle(detail::tquat< T, P > const &x)
Returns the quaternion rotation angle.
glm::fastAsin
T fastAsin(const T &angle)
Faster than the common asin function but less accurate.
glm::fastTan
T fastTan(const T &angle)
Faster than the common tan function but less accurate.
glm::fastSin
T fastSin(const T &angle)
Faster than the common sin function but less accurate.
glm::fastCos
T fastCos(const T &angle)
Faster than the common cos function but less accurate.