master
ブランチ master
VulkanExample / dep / include / glm / gtx / functions.hpp
1.3 KB、54行 生 Blame 履歴
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
14#pragma once
15
16// Dependencies
17#include "../detail/setup.hpp"
18#include "../detail/qualifier.hpp"
19#include "../detail/type_vec2.hpp"
20
21#ifndef GLM_ENABLE_EXPERIMENTAL
22# error "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."
23#elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
24# pragma message("GLM: GLM_GTX_functions extension included")
25#endif
26
27namespace glm
28{
29 /// @addtogroup gtx_functions
30 /// @{
31
32 /// 1D gauss function
33 ///
34 /// @see gtc_epsilon
35 template<typename T>
36 GLM_FUNC_DECL T gauss(
37 T x,
38 T ExpectedValue,
39 T StandardDeviation);
40
41 /// 2D gauss function
42 ///
43 /// @see gtc_epsilon
44 template<typename T, qualifier Q>
45 GLM_FUNC_DECL T gauss(
46 vec<2, T, Q> const& Coord,
47 vec<2, T, Q> const& ExpectedValue,
48 vec<2, T, Q> const& StandardDeviation);
49
50 /// @}
51}//namespace glm
52
53#include "functions.inl"
54