6template<
typename T,
typename U, qualifier Q>
12template<length_t L,
typename T,
typename U, qualifier Q>
20 for(length_t i = 0, n = Result.length(); i < n; ++i)
21 Result[i] = x[i] < y[i] ? a[i] : b[i];
25template<length_t L,
typename T,
typename U, qualifier Q>
33 for(length_t i = 0, n = Result.length(); i < n; ++i)
34 Result[i] = x < y ? a[i] : b[i];
38template<length_t L,
typename T,
typename U, qualifier Q>
46 for(length_t i = 0, n = Result.length(); i < n; ++i)
47 Result[i] = x[i] < y[i] ? a : b;
52template<
typename T,
typename U>
60 U Result = x < y ? (x < z ? a : c) : (y < z ? b : c);
64template<length_t L,
typename T,
typename U, qualifier Q>
73 for(length_t i = 0, n = Result.length(); i < n; ++i)
74 Result[i] = x[i] < y[i] ? (x[i] < z[i] ? a[i] : c[i]) : (y[i] < z[i] ? b[i] : c[i]);
79template<
typename T,
typename U>
90 U Result1 = x < y ? a : b;
91 U Result2 = z < w ? c : d;
92 U Result = Test1 < Test2 ? Result1 : Result2;
97template<length_t L,
typename T,
typename U, qualifier Q>
107 for(length_t i = 0, n = Result.length(); i < n; ++i)
109 T Test1 =
min(x[i], y[i]);
110 T Test2 =
min(z[i], w[i]);
111 U Result1 = x[i] < y[i] ? a[i] : b[i];
112 U Result2 = z[i] < w[i] ? c[i] : d[i];
113 Result[i] = Test1 < Test2 ? Result1 : Result2;
119template<length_t L,
typename T,
typename U, qualifier Q>
132 for(length_t i = 0, n = Result.length(); i < n; ++i)
134 U Result1 = x < y ? a[i] : b[i];
135 U Result2 = z < w ? c[i] : d[i];
136 Result[i] = Test1 < Test2 ? Result1 : Result2;
142template<length_t L,
typename T,
typename U, qualifier Q>
152 for(length_t i = 0, n = Result.length(); i < n; ++i)
154 T Test1 =
min(x[i], y[i]);
155 T Test2 =
min(z[i], w[i]);
156 U Result1 = x[i] < y[i] ? a : b;
157 U Result2 = z[i] < w[i] ? c : d;
158 Result[i] = Test1 < Test2 ? Result1 : Result2;
164template<
typename T,
typename U>
167 return x > y ? a : b;
171template<length_t L,
typename T,
typename U, qualifier Q>
179 for(length_t i = 0, n = Result.length(); i < n; ++i)
180 Result[i] = x[i] > y[i] ? a[i] : b[i];
185template<length_t L,
typename T,
typename U, qualifier Q>
193 for(length_t i = 0, n = Result.length(); i < n; ++i)
194 Result[i] = x > y ? a[i] : b[i];
199template<length_t L,
typename T,
typename U, qualifier Q>
207 for(length_t i = 0, n = Result.length(); i < n; ++i)
208 Result[i] = x[i] > y[i] ? a : b;
213template<
typename T,
typename U>
221 U Result = x > y ? (x > z ? a : c) : (y > z ? b : c);
226template<length_t L,
typename T,
typename U, qualifier Q>
235 for(length_t i = 0, n = Result.length(); i < n; ++i)
236 Result[i] = x[i] > y[i] ? (x[i] > z[i] ? a[i] : c[i]) : (y[i] > z[i] ? b[i] : c[i]);
241template<length_t L,
typename T,
typename U, qualifier Q>
250 for(length_t i = 0, n = Result.length(); i < n; ++i)
251 Result[i] = x > y ? (x > z ? a[i] : c[i]) : (y > z ? b[i] : c[i]);
256template<length_t L,
typename T,
typename U, qualifier Q>
265 for(length_t i = 0, n = Result.length(); i < n; ++i)
266 Result[i] = x[i] > y[i] ? (x[i] > z[i] ? a : c) : (y[i] > z[i] ? b : c);
271template<
typename T,
typename U>
282 U Result1 = x > y ? a : b;
283 U Result2 = z > w ? c : d;
284 U Result = Test1 > Test2 ? Result1 : Result2;
289template<length_t L,
typename T,
typename U, qualifier Q>
299 for(length_t i = 0, n = Result.length(); i < n; ++i)
301 T Test1 =
max(x[i], y[i]);
302 T Test2 =
max(z[i], w[i]);
303 U Result1 = x[i] > y[i] ? a[i] : b[i];
304 U Result2 = z[i] > w[i] ? c[i] : d[i];
305 Result[i] = Test1 > Test2 ? Result1 : Result2;
311template<length_t L,
typename T,
typename U, qualifier Q>
324 for(length_t i = 0, n = Result.length(); i < n; ++i)
326 U Result1 = x > y ? a[i] : b[i];
327 U Result2 = z > w ? c[i] : d[i];
328 Result[i] = Test1 > Test2 ? Result1 : Result2;
334template<length_t L,
typename T,
typename U, qualifier Q>
344 for(length_t i = 0, n = Result.length(); i < n; ++i)
346 T Test1 =
max(x[i], y[i]);
347 T Test2 =
max(z[i], w[i]);
348 U Result1 = x[i] > y[i] ? a : b;
349 U Result2 = z[i] > w[i] ? c : d;
350 Result[i] = Test1 > Test2 ? Result1 : Result2;
GLM_FUNC_DECL GLM_CONSTEXPR genType min(genType x, genType y)
Definition func_common.inl:17
GLM_FUNC_DECL GLM_CONSTEXPR genType max(genType x, genType y)
Definition func_common.inl:25
GLM_FUNC_DECL U associatedMax(T x, U a, T y, U b)
Definition associated_min_max.inl:165
GLM_FUNC_DECL U associatedMin(T x, U a, T y, U b)
Definition associated_min_max.inl:7
Core features
Definition common.hpp:21
Definition qualifier.hpp:35