functions.hpp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /// @ref gtx_functions
  2. /// @file glm/gtx/functions.hpp
  3. ///
  4. /// @see core (dependence)
  5. /// @see gtc_quaternion (dependence)
  6. ///
  7. /// @defgroup gtx_functions GLM_GTX_functions
  8. /// @ingroup gtx
  9. ///
  10. /// Include <glm/gtx/functions.hpp> to use the features of this extension.
  11. ///
  12. /// List of useful common functions.
  13. #pragma once
  14. // Dependencies
  15. #include "../detail/setup.hpp"
  16. #include "../detail/qualifier.hpp"
  17. #include "../detail/type_vec2.hpp"
  18. #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
  19. # ifndef GLM_ENABLE_EXPERIMENTAL
  20. # pragma message("GLM: GLM_GTX_functions 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_functions extension included")
  23. # endif
  24. #endif
  25. namespace glm
  26. {
  27. /// @addtogroup gtx_functions
  28. /// @{
  29. /// 1D gauss function
  30. ///
  31. /// @see gtc_epsilon
  32. template<typename T>
  33. GLM_FUNC_DECL T gauss(
  34. T x,
  35. T ExpectedValue,
  36. T StandardDeviation);
  37. /// 2D gauss function
  38. ///
  39. /// @see gtc_epsilon
  40. template<typename T, qualifier Q>
  41. GLM_FUNC_DECL T gauss(
  42. vec<2, T, Q> const& Coord,
  43. vec<2, T, Q> const& ExpectedValue,
  44. vec<2, T, Q> const& StandardDeviation);
  45. /// @}
  46. }//namespace glm
  47. #include "functions.inl"