0.9.9 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 experimental 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, qualifier P>
34  GLM_FUNC_DECL U associatedMin(T x, U a, T y, U b);
35 
38  template<length_t L, typename T, typename U, qualifier P>
39  GLM_FUNC_DECL vec<2, U, P> associatedMin(
40  vec<L, T, P> const& x, vec<L, U, P> const & a,
41  vec<L, T, P> const& y, vec<L, U, P> const & b);
42 
45  template<length_t L, typename T, typename U, qualifier P>
46  GLM_FUNC_DECL vec<L, U, P> associatedMin(
47  T x, const vec<L, U, P>& a,
48  T y, const vec<L, U, P>& b);
49 
52  template<length_t L, typename T, typename U, qualifier P>
53  GLM_FUNC_DECL vec<L, U, P> associatedMin(
54  vec<L, T, P> const& x, U a,
55  vec<L, 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<length_t L, typename T, typename U, qualifier P>
68  GLM_FUNC_DECL vec<L, U, P> associatedMin(
69  vec<L, T, P> const& x, vec<L, U, P> const & a,
70  vec<L, T, P> const& y, vec<L, U, P> const & b,
71  vec<L, T, P> const& z, vec<L, 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<length_t L, typename T, typename U, qualifier P>
85  GLM_FUNC_DECL vec<L, U, P> associatedMin(
86  vec<L, T, P> const& x, vec<L, U, P> const & a,
87  vec<L, T, P> const& y, vec<L, U, P> const & b,
88  vec<L, T, P> const& z, vec<L, U, P> const & c,
89  vec<L, T, P> const& w, vec<L, U, P> const & d);
90 
93  template<length_t L, typename T, typename U, qualifier P>
94  GLM_FUNC_DECL vec<L, U, P> associatedMin(
95  T x, vec<L, U, P> const & a,
96  T y, vec<L, U, P> const & b,
97  T z, vec<L, U, P> const & c,
98  T w, vec<L, U, P> const & d);
99 
102  template<length_t L, typename T, typename U, qualifier P>
103  GLM_FUNC_DECL vec<L, U, P> associatedMin(
104  vec<L, T, P> const& x, U a,
105  vec<L, T, P> const& y, U b,
106  vec<L, T, P> const& z, U c,
107  vec<L, 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<length_t L, typename T, typename U, qualifier P>
117  GLM_FUNC_DECL vec<2, U, P> associatedMax(
118  vec<L, T, P> const& x, vec<L, U, P> const & a,
119  vec<L, T, P> const& y, vec<L, U, P> const & b);
120 
123  template<length_t L, typename T, typename U, qualifier P>
124  GLM_FUNC_DECL vec<L, T, P> associatedMax(
125  T x, vec<L, U, P> const & a,
126  T y, vec<L, U, P> const & b);
127 
130  template<length_t L, typename T, typename U, qualifier P>
131  GLM_FUNC_DECL vec<L, U, P> associatedMax(
132  vec<L, T, P> const& x, U a,
133  vec<L, 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<length_t L, typename T, typename U, qualifier P>
146  GLM_FUNC_DECL vec<L, U, P> associatedMax(
147  vec<L, T, P> const& x, vec<L, U, P> const & a,
148  vec<L, T, P> const& y, vec<L, U, P> const & b,
149  vec<L, T, P> const& z, vec<L, U, P> const & c);
150 
153  template<length_t L, typename T, typename U, qualifier P>
154  GLM_FUNC_DECL vec<L, T, P> associatedMax(
155  T x, vec<L, U, P> const & a,
156  T y, vec<L, U, P> const & b,
157  T z, vec<L, U, P> const & c);
158 
161  template<length_t L, typename T, typename U, qualifier P>
162  GLM_FUNC_DECL vec<L, U, P> associatedMax(
163  vec<L, T, P> const& x, U a,
164  vec<L, T, P> const& y, U b,
165  vec<L, 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<length_t L, typename T, typename U, qualifier P>
179  GLM_FUNC_DECL vec<L, U, P> associatedMax(
180  vec<L, T, P> const& x, vec<L, U, P> const & a,
181  vec<L, T, P> const& y, vec<L, U, P> const & b,
182  vec<L, T, P> const& z, vec<L, U, P> const & c,
183  vec<L, T, P> const& w, vec<L, U, P> const & d);
184 
187  template<length_t L, typename T, typename U, qualifier P>
188  GLM_FUNC_DECL vec<L, U, P> associatedMax(
189  T x, vec<L, U, P> const & a,
190  T y, vec<L, U, P> const & b,
191  T z, vec<L, U, P> const & c,
192  T w, vec<L, U, P> const & d);
193 
196  template<length_t L, typename T, typename U, qualifier P>
197  GLM_FUNC_DECL vec<L, U, P> associatedMax(
198  vec<L, T, P> const& x, U a,
199  vec<L, T, P> const& y, U b,
200  vec<L, T, P> const& z, U c,
201  vec<L, T, P> const& w, U d);
202 
204 } //namespace glm
205 
206 #include "associated_min_max.inl"
Definition: _noise.hpp:11
GLM_FUNC_DECL vec< L, U, P > associatedMax(vec< L, T, P > const &x, U a, vec< L, T, P > const &y, U b, vec< L, T, P > const &z, U c, vec< L, T, P > const &w, U d)
Maximum comparison between 4 variables and returns 4 associated variable values.
GLM_FUNC_DECL vec< L, U, P > associatedMin(vec< L, T, P > const &x, U a, vec< L, T, P > const &y, U b, vec< L, T, P > const &z, U c, vec< L, T, P > const &w, U d)
Minimum comparison between 4 variables and returns 4 associated variable values.