You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: glm/gtx/fast_trigonometry.hpp
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@
14
14
15
15
// Dependency:
16
16
#include"../gtc/constants.hpp"
17
+
#include"../gtx/fast_square_root.hpp"
17
18
18
19
#ifndef GLM_ENABLE_EXPERIMENTAL
19
20
# error "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."
@@ -26,7 +27,7 @@ namespace glm
26
27
/// @addtogroup gtx_fast_trigonometry
27
28
/// @{
28
29
29
-
/// Wrap an angle to [0 2pi[
30
+
/// Wrap an angle to [0, 2pi]
30
31
/// From GLM_GTX_fast_trigonometry extension.
31
32
template<typename T>
32
33
GLM_FUNC_DECL T wrapAngle(T angle);
@@ -48,25 +49,25 @@ namespace glm
48
49
GLM_FUNC_DECL T fastTan(T angle);
49
50
50
51
/// Faster than the common asin function but less accurate.
51
-
/// Defined between -2pi and 2pi.
52
+
/// Defined between -1 and 1.
52
53
/// From GLM_GTX_fast_trigonometry extension.
53
54
template<typename T>
54
55
GLM_FUNC_DECL T fastAsin(T angle);
55
56
56
57
/// Faster than the common acos function but less accurate.
57
-
/// Defined between -2pi and 2pi.
58
+
/// Defined between -1 and 1.
58
59
/// From GLM_GTX_fast_trigonometry extension.
59
60
template<typename T>
60
61
GLM_FUNC_DECL T fastAcos(T angle);
61
62
62
-
/// Faster than the common atan function but less accurate.
63
-
/// Defined between -2pi and 2pi.
63
+
/// Faster than the common atan2 function but less accurate.
64
+
/// Defined between -inf and inf.
64
65
/// From GLM_GTX_fast_trigonometry extension.
65
66
template<typename T>
66
67
GLM_FUNC_DECL T fastAtan(T y, T x);
67
68
68
69
/// Faster than the common atan function but less accurate.
0 commit comments