Main Page
Related Pages
Modules
Files
File List
G:
Repository
glm
glm
gtc
gtc/random.hpp
Go to the documentation of this file.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
Generated by
1.8.2