0.9.8 API documenation
associated_min_max.hpp
Go to the documentation of this file.
1 
13 #pragma once
14 
15 // Dependency:
16 #include "../glm.hpp"
17 
18 #ifndef GLM_ENABLE_EXPERIMENTAL
19 # error "GLM: GTX_associated_min_max is an experimetal extension and may change in the future. Use #define GLM_ENABLE_EXPERIMENTAL before including it, if you really want to use it."
20 #endif
21 
22 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
23 # pragma message("GLM: GLM_GTX_associated_min_max extension included")
24 #endif
25 
26 namespace glm
27 {
30 
33  template<typename T, typename U, precision P>
34  GLM_FUNC_DECL U associatedMin(T x, U a, T y, U b);
35 
38  template<typename T, typename U, precision P, template <typename, precision> class vecType>
39  GLM_FUNC_DECL tvec2<U, P> associatedMin(
40  vecType<T, P> const & x, vecType<U, P> const & a,
41  vecType<T, P> const & y, vecType<U, P> const & b);
42 
45  template<typename T, typename U, precision P, template <typename, precision> class vecType>
46  GLM_FUNC_DECL vecType<U, P> associatedMin(
47  T x, const vecType<U, P>& a,
48  T y, const vecType<U, P>& b);
49 
52  template<typename T, typename U, precision P, template <typename, precision> class vecType>
53  GLM_FUNC_DECL vecType<U, P> associatedMin(
54  vecType<T, P> const & x, U a,
55  vecType<T, P> const & y, U b);
56 
59  template<typename T, typename U>
60  GLM_FUNC_DECL U associatedMin(
61  T x, U a,
62  T y, U b,
63  T z, U c);
64 
67  template<typename T, typename U, precision P, template <typename, precision> class vecType>
68  GLM_FUNC_DECL vecType<U, P> associatedMin(
69  vecType<T, P> const & x, vecType<U, P> const & a,
70  vecType<T, P> const & y, vecType<U, P> const & b,
71  vecType<T, P> const & z, vecType<U, P> const & c);
72 
75  template<typename T, typename U>
76  GLM_FUNC_DECL U associatedMin(
77  T x, U a,
78  T y, U b,
79  T z, U c,
80  T w, U d);
81 
84  template<typename T, typename U, precision P, template <typename, precision> class vecType>
85  GLM_FUNC_DECL vecType<U, P> associatedMin(
86  vecType<T, P> const & x, vecType<U, P> const & a,
87  vecType<T, P> const & y, vecType<U, P> const & b,
88  vecType<T, P> const & z, vecType<U, P> const & c,
89  vecType<T, P> const & w, vecType<U, P> const & d);
90 
93  template<typename T, typename U, precision P, template <typename, precision> class vecType>
94  GLM_FUNC_DECL vecType<U, P> associatedMin(
95  T x, vecType<U, P> const & a,
96  T y, vecType<U, P> const & b,
97  T z, vecType<U, P> const & c,
98  T w, vecType<U, P> const & d);
99 
102  template<typename T, typename U, precision P, template <typename, precision> class vecType>
103  GLM_FUNC_DECL vecType<U, P> associatedMin(
104  vecType<T, P> const & x, U a,
105  vecType<T, P> const & y, U b,
106  vecType<T, P> const & z, U c,
107  vecType<T, P> const & w, U d);
108 
111  template<typename T, typename U>
112  GLM_FUNC_DECL U associatedMax(T x, U a, T y, U b);
113 
116  template<typename T, typename U, precision P, template <typename, precision> class vecType>
117  GLM_FUNC_DECL tvec2<U, P> associatedMax(
118  vecType<T, P> const & x, vecType<U, P> const & a,
119  vecType<T, P> const & y, vecType<U, P> const & b);
120 
123  template<typename T, typename U, precision P, template <typename, precision> class vecType>
124  GLM_FUNC_DECL vecType<T, P> associatedMax(
125  T x, vecType<U, P> const & a,
126  T y, vecType<U, P> const & b);
127 
130  template<typename T, typename U, precision P, template <typename, precision> class vecType>
131  GLM_FUNC_DECL vecType<U, P> associatedMax(
132  vecType<T, P> const & x, U a,
133  vecType<T, P> const & y, U b);
134 
137  template<typename T, typename U>
138  GLM_FUNC_DECL U associatedMax(
139  T x, U a,
140  T y, U b,
141  T z, U c);
142 
145  template<typename T, typename U, precision P, template <typename, precision> class vecType>
146  GLM_FUNC_DECL vecType<U, P> associatedMax(
147  vecType<T, P> const & x, vecType<U, P> const & a,
148  vecType<T, P> const & y, vecType<U, P> const & b,
149  vecType<T, P> const & z, vecType<U, P> const & c);
150 
153  template<typename T, typename U, precision P, template <typename, precision> class vecType>
154  GLM_FUNC_DECL vecType<T, P> associatedMax(
155  T x, vecType<U, P> const & a,
156  T y, vecType<U, P> const & b,
157  T z, vecType<U, P> const & c);
158 
161  template<typename T, typename U, precision P, template <typename, precision> class vecType>
162  GLM_FUNC_DECL vecType<U, P> associatedMax(
163  vecType<T, P> const & x, U a,
164  vecType<T, P> const & y, U b,
165  vecType<T, P> const & z, U c);
166 
169  template<typename T, typename U>
170  GLM_FUNC_DECL U associatedMax(
171  T x, U a,
172  T y, U b,
173  T z, U c,
174  T w, U d);
175 
178  template<typename T, typename U, precision P, template <typename, precision> class vecType>
179  GLM_FUNC_DECL vecType<U, P> associatedMax(
180  vecType<T, P> const & x, vecType<U, P> const & a,
181  vecType<T, P> const & y, vecType<U, P> const & b,
182  vecType<T, P> const & z, vecType<U, P> const & c,
183  vecType<T, P> const & w, vecType<U, P> const & d);
184 
187  template<typename T, typename U, precision P, template <typename, precision> class vecType>
188  GLM_FUNC_DECL vecType<U, P> associatedMax(
189  T x, vecType<U, P> const & a,
190  T y, vecType<U, P> const & b,
191  T z, vecType<U, P> const & c,
192  T w, vecType<U, P> const & d);
193 
196  template<typename T, typename U, precision P, template <typename, precision> class vecType>
197  GLM_FUNC_DECL vecType<U, P> associatedMax(
198  vecType<T, P> const & x, U a,
199  vecType<T, P> const & y, U b,
200  vecType<T, P> const & z, U c,
201  vecType<T, P> const & w, U d);
202 
204 } //namespace glm
205 
206 #include "associated_min_max.inl"
GLM_FUNC_DECL vecType< U, P > associatedMax(vecType< T, P > const &x, U a, vecType< T, P > const &y, U b, vecType< T, P > const &z, U c, vecType< T, P > const &w, U d)
Maximum comparison between 4 variables and returns 4 associated variable values.
Definition: _noise.hpp:11
GLM_FUNC_DECL vecType< U, P > associatedMin(vecType< T, P > const &x, U a, vecType< T, P > const &y, U b, vecType< T, P > const &z, U c, vecType< T, P > const &w, U d)
Minimum comparison between 4 variables and returns 4 associated variable values.