FlukyEngine
fast_trigonometry.hpp
Go to the documentation of this file.
1 
13 #pragma once
14 
15 // Dependency:
16 #include "../gtc/constants.hpp"
17 
18 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
19 # ifndef GLM_ENABLE_EXPERIMENTAL
20 # pragma message("GLM: GLM_GTX_fast_trigonometry is an experimental extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it.")
21 # else
22 # pragma message("GLM: GLM_GTX_fast_trigonometry extension included")
23 # endif
24 #endif
25 
26 namespace glm
27 {
30 
33  template<typename T>
34  GLM_FUNC_DECL T wrapAngle(T angle);
35 
38  template<typename T>
39  GLM_FUNC_DECL T fastSin(T angle);
40 
43  template<typename T>
44  GLM_FUNC_DECL T fastCos(T angle);
45 
49  template<typename T>
50  GLM_FUNC_DECL T fastTan(T angle);
51 
55  template<typename T>
56  GLM_FUNC_DECL T fastAsin(T angle);
57 
61  template<typename T>
62  GLM_FUNC_DECL T fastAcos(T angle);
63 
67  template<typename T>
68  GLM_FUNC_DECL T fastAtan(T y, T x);
69 
73  template<typename T>
74  GLM_FUNC_DECL T fastAtan(T angle);
75 
77 }//namespace glm
78 
79 #include "fast_trigonometry.inl"
GLM_FUNC_DECL T wrapAngle(T angle)
Wrap an angle to [0 2pi[ From GLM_GTX_fast_trigonometry extension.
Definition: fast_trigonometry.inl:32
GLM_FUNC_DECL T angle(qua< T, Q > const &x)
Returns the quaternion rotation angle.
Definition: quaternion_trigonometric.inl:6
GLM_FUNC_DECL T fastTan(T angle)
Faster than the common tan function but less accurate.
Definition: fast_trigonometry.inl:80
Core features
Definition: common.hpp:20
GLM_FUNC_DECL T fastAsin(T angle)
Faster than the common asin function but less accurate.
Definition: fast_trigonometry.inl:93
GLM_FUNC_DECL T fastAtan(T y, T x)
Faster than the common atan function but less accurate.
Definition: fast_trigonometry.inl:119
GLM_FUNC_DECL T fastAcos(T angle)
Faster than the common acos function but less accurate.
Definition: fast_trigonometry.inl:106
GLM_FUNC_DECL T fastCos(T angle)
Faster than the common cos function but less accurate.
Definition: fast_trigonometry.inl:45
GLM_FUNC_DECL T fastSin(T angle)
Faster than the common sin function but less accurate.
Definition: fast_trigonometry.inl:67