0.9.8: extended_min_max.hpp Source File

| 0.9.8

- Main Page
- Modules
- Files

- File List

extended_min_max.hpp
Go to the documentation of this file.
1
14 #pragma once
15
16 // Dependency:
17 #include "../glm.hpp"
18
19 #if GLM_MESSAGES == GLM_MESSAGES_ENABLED && !defined(GLM_EXT_INCLUDED)
20 # pragma message("GLM: GLM_GTX_extented_min_max extension included")
21 #endif
22
23 namespace glm
24 {
27
30 template <typename T>
31 GLM_FUNC_DECL T min(
32 T const & x,
33 T const & y,
34 T const & z);
35
38 template <typename T, template <typename> class C>
39 GLM_FUNC_DECL C<T> min(
40 C<T> const & x,
41 typename C<T>::T const & y,
42 typename C<T>::T const & z);
43
46 template <typename T, template <typename> class C>
47 GLM_FUNC_DECL C<T> min(
48 C<T> const & x,
49 C<T> const & y,
50 C<T> const & z);
51
54 template <typename T>
55 GLM_FUNC_DECL T min(
56 T const & x,
57 T const & y,
58 T const & z,
59 T const & w);
60
63 template <typename T, template <typename> class C>
64 GLM_FUNC_DECL C<T> min(
65 C<T> const & x,
66 typename C<T>::T const & y,
67 typename C<T>::T const & z,
68 typename C<T>::T const & w);
69
72 template <typename T, template <typename> class C>
73 GLM_FUNC_DECL C<T> min(
74 C<T> const & x,
75 C<T> const & y,
76 C<T> const & z,
77 C<T> const & w);
78
81 template <typename T>
82 GLM_FUNC_DECL T max(
83 T const & x,
84 T const & y,
85 T const & z);
86
89 template <typename T, template <typename> class C>
90 GLM_FUNC_DECL C<T> max(
91 C<T> const & x,
92 typename C<T>::T const & y,
93 typename C<T>::T const & z);
94
97 template <typename T, template <typename> class C>
98 GLM_FUNC_DECL C<T> max(
99 C<T> const & x,
100 C<T> const & y,
101 C<T> const & z);
102
105 template <typename T>
106 GLM_FUNC_DECL T max(
107 T const & x,
108 T const & y,
109 T const & z,
110 T const & w);
111
114 template <typename T, template <typename> class C>
115 GLM_FUNC_DECL C<T> max(
116 C<T> const & x,
117 typename C<T>::T const & y,
118 typename C<T>::T const & z,
119 typename C<T>::T const & w);
120
123 template <typename T, template <typename> class C>
124 GLM_FUNC_DECL C<T> max(
125 C<T> const & x,
126 C<T> const & y,
127 C<T> const & z,
128 C<T> const & w);
129
131 }//namespace glm
132
133 #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.
glm
Definition: _noise.hpp:11