0.9.9 API documentation
extended_min_max.hpp
Go to the documentation of this file.
1
12
13#pragma once
14
15// Dependency:
16#include "../glm.hpp"
17#include "../ext/vector_common.hpp"
18
19#if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
20# ifndef GLM_ENABLE_EXPERIMENTAL
21# pragma message("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# else
23# pragma message("GLM: GLM_GTX_extented_min_max extension included")
24# endif
25#endif
26
27namespace glm
28{
31
34 template<typename T>
35 GLM_FUNC_DECL T min(
36 T const& x,
37 T const& y,
38 T const& z);
39
42 template<typename T, template<typename> class C>
43 GLM_FUNC_DECL C<T> min(
44 C<T> const& x,
45 typename C<T>::T const& y,
46 typename C<T>::T const& z);
47
50 template<typename T, template<typename> class C>
51 GLM_FUNC_DECL C<T> min(
52 C<T> const& x,
53 C<T> const& y,
54 C<T> const& z);
55
58 template<typename T>
59 GLM_FUNC_DECL T min(
60 T const& x,
61 T const& y,
62 T const& z,
63 T const& w);
64
67 template<typename T, template<typename> class C>
68 GLM_FUNC_DECL C<T> min(
69 C<T> const& x,
70 typename C<T>::T const& y,
71 typename C<T>::T const& z,
72 typename C<T>::T const& w);
73
76 template<typename T, template<typename> class C>
77 GLM_FUNC_DECL C<T> min(
78 C<T> const& x,
79 C<T> const& y,
80 C<T> const& z,
81 C<T> const& w);
82
85 template<typename T>
86 GLM_FUNC_DECL T max(
87 T const& x,
88 T const& y,
89 T const& z);
90
93 template<typename T, template<typename> class C>
94 GLM_FUNC_DECL C<T> max(
95 C<T> const& x,
96 typename C<T>::T const& y,
97 typename C<T>::T const& z);
98
101 template<typename T, template<typename> class C>
102 GLM_FUNC_DECL C<T> max(
103 C<T> const& x,
104 C<T> const& y,
105 C<T> const& z);
106
109 template<typename T>
110 GLM_FUNC_DECL T max(
111 T const& x,
112 T const& y,
113 T const& z,
114 T const& w);
115
118 template<typename T, template<typename> class C>
119 GLM_FUNC_DECL C<T> max(
120 C<T> const& x,
121 typename C<T>::T const& y,
122 typename C<T>::T const& z,
123 typename C<T>::T const& w);
124
127 template<typename T, template<typename> class C>
128 GLM_FUNC_DECL C<T> max(
129 C<T> const& x,
130 C<T> const& y,
131 C<T> const& z,
132 C<T> const& w);
133
135}//namespace glm
136
137#include "extended_min_max.inl"
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_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.