Skip to content

Commit 903308d

Browse files
ZvRzyan18christophe-lunarg
authored andcommitted
Include fast_square_root.hpp
1 parent 65a83c9 commit 903308d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

glm/gtx/fast_trigonometry.hpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
// Dependency:
1616
#include "../gtc/constants.hpp"
17+
#include "../gtx/fast_square_root.hpp"
1718

1819
#ifndef GLM_ENABLE_EXPERIMENTAL
1920
# 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
2627
/// @addtogroup gtx_fast_trigonometry
2728
/// @{
2829

29-
/// Wrap an angle to [0 2pi[
30+
/// Wrap an angle to [0, 2pi]
3031
/// From GLM_GTX_fast_trigonometry extension.
3132
template<typename T>
3233
GLM_FUNC_DECL T wrapAngle(T angle);
@@ -48,25 +49,25 @@ namespace glm
4849
GLM_FUNC_DECL T fastTan(T angle);
4950

5051
/// Faster than the common asin function but less accurate.
51-
/// Defined between -2pi and 2pi.
52+
/// Defined between -1 and 1.
5253
/// From GLM_GTX_fast_trigonometry extension.
5354
template<typename T>
5455
GLM_FUNC_DECL T fastAsin(T angle);
5556

5657
/// Faster than the common acos function but less accurate.
57-
/// Defined between -2pi and 2pi.
58+
/// Defined between -1 and 1.
5859
/// From GLM_GTX_fast_trigonometry extension.
5960
template<typename T>
6061
GLM_FUNC_DECL T fastAcos(T angle);
6162

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.
6465
/// From GLM_GTX_fast_trigonometry extension.
6566
template<typename T>
6667
GLM_FUNC_DECL T fastAtan(T y, T x);
6768

6869
/// Faster than the common atan function but less accurate.
69-
/// Defined between -2pi and 2pi.
70+
/// Defined between -inf and inf.
7071
/// From GLM_GTX_fast_trigonometry extension.
7172
template<typename T>
7273
GLM_FUNC_DECL T fastAtan(T angle);

0 commit comments

Comments
 (0)