0.9.6
fast_trigonometry.hpp
Go to the documentation of this file.
1 
38 #pragma once
39 
40 // Dependency:
41 #include "../glm.hpp"
42 #include "../gtc/constants.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 
55  template <typename T>
56  GLM_FUNC_DECL T wrapAngle(T angle);
57 
60  template <typename T>
61  GLM_FUNC_DECL T fastSin(T angle);
62 
65  template <typename T>
66  GLM_FUNC_DECL T fastCos(T angle);
67 
71  template <typename T>
72  GLM_FUNC_DECL T fastTan(T angle);
73 
77  template <typename T>
78  GLM_FUNC_DECL T fastAsin(T angle);
79 
83  template <typename T>
84  GLM_FUNC_DECL T fastAcos(T angle);
85 
89  template <typename T>
90  GLM_FUNC_DECL T fastAtan(T y, T x);
91 
95  template <typename T>
96  GLM_FUNC_DECL T fastAtan(T angle);
97 
99 }//namespace glm
100 
101 #include "fast_trigonometry.inl"
GLM_FUNC_DECL T fastTan(T angle)
Faster than the common tan function but less accurate.
GLM_FUNC_DECL T fastAtan(T angle)
Faster than the common atan function but less accurate.
GLM_FUNC_DECL T fastAcos(T angle)
Faster than the common acos function but less accurate.
GLM_FUNC_DECL T fastCos(T angle)
Faster than the common cos function but less accurate.
Definition: _noise.hpp:31
GLM_FUNC_DECL T fastSin(T angle)
Faster than the common sin function but less accurate.
GLM_FUNC_DECL T wrapAngle(T angle)
Wrap an angle to [0 2pi[ From GLM_GTX_fast_trigonometry extension.
GLM_FUNC_DECL T angle(tquat< T, P > const &x)
Returns the quaternion rotation angle.
GLM_FUNC_DECL T fastAsin(T angle)
Faster than the common asin function but less accurate.