18 #ifndef GLM_ENABLE_EXPERIMENTAL 19 # error "GLM: GLM_GTX_extented_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." 22 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED) 23 # pragma message("GLM: GLM_GTX_extented_min_max extension included") 41 template<
typename T,
template<
typename>
class C>
42 GLM_FUNC_DECL C<T>
min(
44 typename C<T>::T
const& y,
45 typename C<T>::T
const& z);
49 template<
typename T,
template<
typename>
class C>
50 GLM_FUNC_DECL C<T>
min(
66 template<
typename T,
template<
typename>
class C>
67 GLM_FUNC_DECL C<T>
min(
69 typename C<T>::T
const& y,
70 typename C<T>::T
const& z,
71 typename C<T>::T
const& w);
75 template<
typename T,
template<
typename>
class C>
76 GLM_FUNC_DECL C<T>
min(
92 template<
typename T,
template<
typename>
class C>
93 GLM_FUNC_DECL C<T>
max(
95 typename C<T>::T
const& y,
96 typename C<T>::T
const& z);
100 template<
typename T,
template<
typename>
class C>
101 GLM_FUNC_DECL C<T>
max(
117 template<
typename T,
template<
typename>
class C>
118 GLM_FUNC_DECL C<T>
max(
120 typename C<T>::T
const& y,
121 typename C<T>::T
const& z,
122 typename C<T>::T
const& w);
126 template<
typename T,
template<
typename>
class C>
127 GLM_FUNC_DECL C<T>
max(
138 template<
typename genType>
139 GLM_FUNC_DECL genType
fmin(genType x, genType y);
147 template<
typename genType>
148 GLM_FUNC_DECL genType
fmax(genType x, genType y);
155 template<
typename genType>
156 GLM_FUNC_DECL genType
fclamp(genType x, genType minVal, genType maxVal);
165 template<length_t L,
typename T, qualifier Q>
166 GLM_FUNC_DECL vec<L, T, Q>
fclamp(vec<L, T, Q>
const& x, T minVal, T maxVal);
175 template<length_t L,
typename T, qualifier Q>
176 GLM_FUNC_DECL vec<L, T, Q>
fclamp(vec<L, T, Q>
const& x, vec<L, T, Q>
const& minVal, vec<L, T, Q>
const& maxVal);
182 #include "extended_min_max.inl" GLM_FUNC_DECL genType fmin(genType x, genType y)
Returns y if y < x; otherwise, it returns x.
GLM_FUNC_DECL C< T > min(C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w)
Return the minimum component-wise values of 4 inputs.
GLM_FUNC_DECL vec< L, T, Q > fclamp(vec< L, T, Q > const &x, vec< L, T, Q > const &minVal, vec< L, T, Q > const &maxVal)
Returns min(max(x, minVal), maxVal) for each component in x.
GLM_FUNC_DECL genType fmax(genType x, genType y)
Returns y if x < y; otherwise, it returns x.
GLM_FUNC_DECL C< T > max(C< T > const &x, C< T > const &y, C< T > const &z, C< T > const &w)
Return the maximum component-wise values of 4 inputs.