GLM 0.9.5

- Main Page
- Related Pages
- Modules
- Namespaces
- Files

- File List

extented_min_max.hpp
Go to the documentation of this file.
1
39 #ifndef GLM_GTX_extented_min_max
40 #define GLM_GTX_extented_min_max
41
42 // Dependency:
43 #include "../glm.hpp"
44
45 #if(defined(GLM_MESSAGES) && !defined(GLM_EXT_INCLUDED))
46 # pragma message("GLM: GLM_GTX_extented_min_max extension included")
47 #endif
48
49 namespace glm
50 {
53
56 template <typename T>
57 T min(
58 T const & x,
59 T const & y,
60 T const & z);
61
64 template
65 <
66 typename T,
67 template <typename> class C
68 >
69 C<T> min(
70 C<T> const & x,
71 typename C<T>::T const & y,
72 typename C<T>::T const & z);
73
76 template
77 <
78 typename T,
79 template <typename> class C
80 >
81 C<T> min(
82 C<T> const & x,
83 C<T> const & y,
84 C<T> const & z);
85
88 template <typename T>
89 T min(
90 T const & x,
91 T const & y,
92 T const & z,
93 T const & w);
94
97 template
98 <
99 typename T,
100 template <typename> class C
101 >
102 C<T> min(
103 C<T> const & x,
104 typename C<T>::T const & y,
105 typename C<T>::T const & z,
106 typename C<T>::T const & w);
107
110 template
111 <
112 typename T,
113 template <typename> class C
114 >
115 C<T> min(
116 C<T> const & x,
117 C<T> const & y,
118 C<T> const & z,
119 C<T> const & w);
120
123 template <typename T>
124 T max(
125 T const & x,
126 T const & y,
127 T const & z);
128
131 template
132 <
133 typename T,
134 template <typename> class C
135 >
136 C<T> max(
137 C<T> const & x,
138 typename C<T>::T const & y,
139 typename C<T>::T const & z);
140
143 template
144 <
145 typename T,
146 template <typename> class C
147 >
148 C<T> max(
149 C<T> const & x,
150 C<T> const & y,
151 C<T> const & z);
152
155 template <typename T>
156 T max(
157 T const & x,
158 T const & y,
159 T const & z,
160 T const & w);
161
164 template
165 <
166 typename T,
167 template <typename> class C
168 >
169 C<T> max(
170 C<T> const & x,
171 typename C<T>::T const & y,
172 typename C<T>::T const & z,
173 typename C<T>::T const & w);
174
177 template
178 <
179 typename T,
180 template <typename> class C
181 >
182 C<T> max(
183 C<T> const & x,
184 C<T> const & y,
185 C<T> const & z,
186 C<T> const & w);
187
189 }//namespace glm
190
191 #include "extented_min_max.inl"
192
193 #endif//GLM_GTX_extented_min_max
glm::max
GLM_FUNC_DECL genType max(genType const &x, genType const &y)
Returns y if x &lt; y; otherwise, it returns x.
glm::min
GLM_FUNC_DECL genType min(genType const &x, genType const &y)
Returns y if y &lt; x; otherwise, it returns x.