Back to Mame

0.9.8: fast_trigonometry.hpp Source File

3rdparty/glm/doc/api/a00028_source.html

latest3.6 KB
Original Source

| | 0.9.8 |

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_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)

19 # pragma message("GLM: GLM_GTX_fast_trigonometry extension included")

20 #endif

21

22 namespace glm

23 {

26

29template <typename T>

30 GLM_FUNC_DECL T wrapAngle(T angle);

31

34template <typename T>

35 GLM_FUNC_DECL T fastSin(T angle);

36

39template <typename T>

40 GLM_FUNC_DECL T fastCos(T angle);

41

45template <typename T>

46 GLM_FUNC_DECL T fastTan(T angle);

47

51template <typename T>

52 GLM_FUNC_DECL T fastAsin(T angle);

53

57template <typename T>

58 GLM_FUNC_DECL T fastAcos(T angle);

59

63template <typename T>

64 GLM_FUNC_DECL T fastAtan(T y, T x);

65

69template <typename T>

70 GLM_FUNC_DECL T fastAtan(T angle);

71

73 }//namespace glm

74

75 #include "fast_trigonometry.inl"

glm::fastAcos

GLM_FUNC_DECL T fastAcos(T angle)

Faster than the common acos function but less accurate.

glm

Definition: _noise.hpp:11

glm::fastSin

GLM_FUNC_DECL T fastSin(T angle)

Faster than the common sin function but less accurate.

glm::wrapAngle

GLM_FUNC_DECL T wrapAngle(T angle)

Wrap an angle to [0 2pi[ From GLM_GTX_fast_trigonometry extension.

glm::fastAsin

GLM_FUNC_DECL T fastAsin(T angle)

Faster than the common asin function but less accurate.

glm::angle

GLM_FUNC_DECL T angle(tquat< T, P > const &x)

Returns the quaternion rotation angle.

glm::fastTan

GLM_FUNC_DECL T fastTan(T angle)

Faster than the common tan function but less accurate.

glm::fastCos

GLM_FUNC_DECL T fastCos(T angle)

Faster than the common cos function but less accurate.

glm::fastAtan

GLM_FUNC_DECL T fastAtan(T angle)

Faster than the common atan function but less accurate.


Generated by 1.8.10