blob: 709da04c9c16e24db49f2717c62712529ce8468d (
plain) (
blame)
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
/// @ref gtx_scalar_relational
/// @file glm/gtx/scalar_relational.inl
namespace glm
{
template <typename T>
GLM_FUNC_QUALIFIER bool lessThan
(
T const & x,
T const & y
)
{
return x < y;
}
template <typename T>
GLM_FUNC_QUALIFIER bool lessThanEqual
(
T const & x,
T const & y
)
{
return x <= y;
}
template <typename T>
GLM_FUNC_QUALIFIER bool greaterThan
(
T const & x,
T const & y
)
{
return x > y;
}
template <typename T>
GLM_FUNC_QUALIFIER bool greaterThanEqual
(
T const & x,
T const & y
)
{
return x >= y;
}
template <typename T>
GLM_FUNC_QUALIFIER bool equal
(
T const & x,
T const & y
)
{
return x == y;
}
template <typename T>
GLM_FUNC_QUALIFIER bool notEqual
(
T const & x,
T const & y
)
{
return x != y;
}
GLM_FUNC_QUALIFIER bool any
(
bool const & x
)
{
return x;
}
GLM_FUNC_QUALIFIER bool all
(
bool const & x
)
{
return x;
}
GLM_FUNC_QUALIFIER bool not_
(
bool const & x
)
{
return !x;
}
}//namespace glm
|