1.0.0 API documentation: extended_min_max.hpp Source File

| 1.0.0 API documentation

extended_min_max.hpp
Go to the documentation of this file.
1
13 #pragma once
14
15 // Dependency:
16 #include "../glm.hpp"
17 #include "../ext/vector_common.hpp"
18
19 #ifndef GLM_ENABLE_EXPERIMENTAL
20 # error "GLM: GLM_GTX_extended_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."
21 #elif GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
22 # pragma message("GLM: GLM_GTX_extended_min_max extension included")
23 #endif
24
25 namespace glm
26 {
29
32 template<typename T>
33 GLM_FUNC_DECL T min(
34 T const& x,
35 T const& y,
36 T const& z);
37
40 template<typename T, template<typename> class C>
41 GLM_FUNC_DECL C<T> min(
42 C<T> const& x,
43 typename C<T>::T const& y,
44 typename C<T>::T const& z);
45
48 template<typename T, template<typename> class C>
49 GLM_FUNC_DECL C<T> min(
50 C<T> const& x,
51 C<T> const& y,
52 C<T> const& z);
53
56 template<typename T>
57 GLM_FUNC_DECL T min(
58 T const& x,
59 T const& y,
60 T const& z,
61 T const& w);
62
65 template<typename T, template<typename> class C>
66 GLM_FUNC_DECL C<T> min(
67 C<T> const& x,
68 typename C<T>::T const& y,
69 typename C<T>::T const& z,
70 typename C<T>::T const& w);
71
74 template<typename T, template<typename> class C>
75 GLM_FUNC_DECL C<T> min(
76 C<T> const& x,
77 C<T> const& y,
78 C<T> const& z,
79 C<T> const& w);
80
83 template<typename T>
84 GLM_FUNC_DECL T max(
85 T const& x,
86 T const& y,
87 T const& z);
88
91 template<typename T, template<typename> class C>
92 GLM_FUNC_DECL C<T> max(
93 C<T> const& x,
94 typename C<T>::T const& y,
95 typename C<T>::T const& z);
96
99 template<typename T, template<typename> class C>
100 GLM_FUNC_DECL C<T> max(
101 C<T> const& x,
102 C<T> const& y,
103 C<T> const& z);
104
107 template<typename T>
108 GLM_FUNC_DECL T max(
109 T const& x,
110 T const& y,
111 T const& z,
112 T const& w);
113
116 template<typename T, template<typename> class C>
117 GLM_FUNC_DECL C<T> max(
118 C<T> const& x,
119 typename C<T>::T const& y,
120 typename C<T>::T const& z,
121 typename C<T>::T const& w);
122
125 template<typename T, template<typename> class C>
126 GLM_FUNC_DECL C<T> max(
127 C<T> const& x,
128 C<T> const& y,
129 C<T> const& z,
130 C<T> const& w);
131
133 }//namespace glm
134
135 #include "extended_min_max.inl"
glm::min
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::max
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.