• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /// @ref gtc_functions
2 /// @file glm/gtc/functions.hpp
3 ///
4 /// @see core (dependence)
5 /// @see gtc_half_float (dependence)
6 /// @see gtc_quaternion (dependence)
7 ///
8 /// @defgroup gtc_functions GLM_GTC_functions
9 /// @ingroup gtc
10 ///
11 /// @brief List of useful common functions.
12 ///
13 /// <glm/gtc/functions.hpp> need to be included to use these functionalities.
14 
15 #pragma once
16 
17 // Dependencies
18 #include "../detail/setup.hpp"
19 #include "../detail/precision.hpp"
20 #include "../detail/type_vec2.hpp"
21 
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 #	pragma message("GLM: GLM_GTC_functions extension included")
24 #endif
25 
26 namespace glm
27 {
28 	/// @addtogroup gtc_functions
29 	/// @{
30 
31 	/// 1D gauss function
32 	///
33 	/// @see gtc_epsilon
34 	template <typename T>
35 	GLM_FUNC_DECL T gauss(
36 		T x,
37 		T ExpectedValue,
38 		T StandardDeviation);
39 
40 	/// 2D gauss function
41 	///
42 	/// @see gtc_epsilon
43 	template <typename T, precision P>
44 	GLM_FUNC_DECL T gauss(
45 		tvec2<T, P> const& Coord,
46 		tvec2<T, P> const& ExpectedValue,
47 		tvec2<T, P> const& StandardDeviation);
48 
49 	/// @}
50 }//namespace glm
51 
52 #include "functions.inl"
53 
54