Flow Visualisation
random.hpp
Go to the documentation of this file.
1 
40 #ifndef GLM_GTC_random
41 #define GLM_GTC_random GLM_VERSION
42 
43 // Dependency:
44 #include "../glm.hpp"
45 #include "../gtc/half_float.hpp"
46 
47 #if(defined(GLM_MESSAGES) && !defined(glm_ext))
48 # pragma message("GLM: GLM_GTC_random extension included")
49 #endif
50 
51 namespace glm
52 {
55 
62  template <typename genType>
63  genType linearRand(
64  genType const & Min,
65  genType const & Max);
66 
72  template <typename genType>
73  genType gaussRand(
74  genType const & Mean,
75  genType const & Deviation);
76 
81  template <typename T>
82  detail::tvec2<T> circularRand(
83  T const & Radius);
84 
89  template <typename T>
90  detail::tvec3<T> sphericalRand(
91  T const & Radius);
92 
97  template <typename T>
98  detail::tvec2<T> diskRand(
99  T const & Radius);
100 
105  template <typename T>
106  GLM_FUNC_QUALIFIER detail::tvec3<T> ballRand(
107  T const & Radius);
108 
110 }//namespace glm
111 
112 #include "random.inl"
113 
114 #endif//GLM_GTC_random
detail::tvec2< T > circularRand(T const &Radius)
Definition: random.inl:146
Definition: _detail.hpp:38
Definition: _swizzle.hpp:43
detail::tvec2< T > diskRand(T const &Radius)
Definition: random.inl:108
GLM_FUNC_QUALIFIER detail::tvec3< T > ballRand(T const &Radius)
Definition: random.inl:127
detail::tvec3< T > sphericalRand(T const &Radius)
Definition: random.inl:156
genType gaussRand(genType const &Mean, genType const &Deviation)
Definition: random.inl:86
genType linearRand(genType const &Min, genType const &Max)
Definition: random.inl:74
#define GLM_FUNC_QUALIFIER
Definition: setup.hpp:679