functions.hpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. # pragma message("GLM: GLM_GTX_functions extension included")
  20. #endif
  21. namespace glm
  22. {
  23. /// @addtogroup gtx_functions
  24. /// @{
  25. /// 1D gauss function
  26. ///
  27. /// @see gtc_epsilon
  28. template<typename T>
  29. GLM_FUNC_DECL T gauss(
  30. T x,
  31. T ExpectedValue,
  32. T StandardDeviation);
  33. /// 2D gauss function
  34. ///
  35. /// @see gtc_epsilon
  36. template<typename T, qualifier Q>
  37. GLM_FUNC_DECL T gauss(
  38. vec<2, T, Q> const& Coord,
  39. vec<2, T, Q> const& ExpectedValue,
  40. vec<2, T, Q> const& StandardDeviation);
  41. /// @}
  42. }//namespace glm
  43. #include "functions.inl"