1.0.0 API documentation: scalar_common.hpp Source File

| 1.0.0 API documentation

scalar_common.hpp
Go to the documentation of this file.
1
14 #pragma once
15
16 // Dependency:
17 #include "../common.hpp"
18
19 #if GLM_MESSAGES == GLM_ENABLE && !defined(GLM_EXT_INCLUDED)
20 # pragma message("GLM: GLM_EXT_scalar_common extension included")
21 #endif
22
23 namespace glm
24 {
27
33 template<typename T>
34 GLM_FUNC_DECL T min(T a, T b, T c);
35
41 template<typename T>
42 GLM_FUNC_DECL T min(T a, T b, T c, T d);
43
49 template<typename T>
50 GLM_FUNC_DECL T max(T a, T b, T c);
51
57 template<typename T>
58 GLM_FUNC_DECL T max(T a, T b, T c, T d);
59
66 template<typename T>
67 GLM_FUNC_DECL T fmin(T a, T b);
68
75 template<typename T>
76 GLM_FUNC_DECL T fmin(T a, T b, T c);
77
84 template<typename T>
85 GLM_FUNC_DECL T fmin(T a, T b, T c, T d);
86
93 template<typename T>
94 GLM_FUNC_DECL T fmax(T a, T b);
95
102 template<typename T>
103 GLM_FUNC_DECL T fmax(T a, T b, T C);
104
111 template<typename T>
112 GLM_FUNC_DECL T fmax(T a, T b, T C, T D);
113
119 template<typename genType>
120 GLM_FUNC_DECL genType fclamp(genType x, genType minVal, genType maxVal);
121
127 template<typename genType>
128 GLM_FUNC_DECL genType clamp(genType const& Texcoord);
129
135 template<typename genType>
136 GLM_FUNC_DECL genType repeat(genType const& Texcoord);
137
143 template<typename genType>
144 GLM_FUNC_DECL genType mirrorClamp(genType const& Texcoord);
145
151 template<typename genType>
152 GLM_FUNC_DECL genType mirrorRepeat(genType const& Texcoord);
153
163 template<typename genType>
164 GLM_FUNC_DECL int iround(genType const& x);
165
175 template<typename genType>
176 GLM_FUNC_DECL uint uround(genType const& x);
177
179 }//namespace glm
180
181 #include "scalar_common.inl"
glm::mirrorClamp
GLM_FUNC_DECL genType mirrorClamp(genType const &Texcoord)
Simulate GL_MIRRORED_REPEAT OpenGL wrap mode.
glm::min
GLM_FUNC_DECL T min(T a, T b, T c, T d)
Returns the minimum component-wise values of 4 inputs.
glm::fmin
GLM_FUNC_DECL T fmin(T a, T b, T c, T d)
Returns the minimum component-wise values of 4 inputs.
glm::repeat
GLM_FUNC_DECL genType repeat(genType const &Texcoord)
Simulate GL_REPEAT OpenGL wrap mode.
glm::fclamp
GLM_FUNC_DECL genType fclamp(genType x, genType minVal, genType maxVal)
Returns min(max(x, minVal), maxVal) for each component in x.
glm::uround
GLM_FUNC_DECL uint uround(genType const &x)
Returns a value equal to the nearest integer to x.
glm::mirrorRepeat
GLM_FUNC_DECL genType mirrorRepeat(genType const &Texcoord)
Simulate GL_MIRROR_REPEAT OpenGL wrap mode.
glm::iround
GLM_FUNC_DECL int iround(genType const &x)
Returns a value equal to the nearest integer to x.
glm::fmax
GLM_FUNC_DECL T fmax(T a, T b, T C, T D)
Returns the maximum component-wise values of 4 inputs.
glm::max
GLM_FUNC_DECL T max(T a, T b, T c, T d)
Returns the maximum component-wise values of 4 inputs.
glm::clamp
GLM_FUNC_DECL genType clamp(genType const &Texcoord)
Simulate GL_CLAMP OpenGL wrap mode.