|
|
|
@ -173,7 +173,7 @@ namespace glm |
|
|
|
|
/// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/min.xml">GLSL min man page</a>
|
|
|
|
|
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
|
|
|
|
|
template<typename genType> |
|
|
|
|
GLM_FUNC_DECL genType min(genType x, genType y); |
|
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR genType min(genType x, genType y); |
|
|
|
|
|
|
|
|
|
/// Returns y if y < x; otherwise, it returns x.
|
|
|
|
|
///
|
|
|
|
@ -184,7 +184,7 @@ namespace glm |
|
|
|
|
/// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/min.xml">GLSL min man page</a>
|
|
|
|
|
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
|
|
|
|
|
template<length_t L, typename T, qualifier Q> |
|
|
|
|
GLM_FUNC_DECL vec<L, T, Q> min(vec<L, T, Q> const& x, T y); |
|
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> min(vec<L, T, Q> const& x, T y); |
|
|
|
|
|
|
|
|
|
/// Returns y if y < x; otherwise, it returns x.
|
|
|
|
|
///
|
|
|
|
@ -195,7 +195,7 @@ namespace glm |
|
|
|
|
/// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/min.xml">GLSL min man page</a>
|
|
|
|
|
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
|
|
|
|
|
template<length_t L, typename T, qualifier Q> |
|
|
|
|
GLM_FUNC_DECL vec<L, T, Q> min(vec<L, T, Q> const& x, vec<L, T, Q> const& y); |
|
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> min(vec<L, T, Q> const& x, vec<L, T, Q> const& y); |
|
|
|
|
|
|
|
|
|
/// Returns y if x < y; otherwise, it returns x.
|
|
|
|
|
///
|
|
|
|
@ -204,7 +204,7 @@ namespace glm |
|
|
|
|
/// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/max.xml">GLSL max man page</a>
|
|
|
|
|
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
|
|
|
|
|
template<typename genType> |
|
|
|
|
GLM_FUNC_DECL genType max(genType x, genType y); |
|
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR genType max(genType x, genType y); |
|
|
|
|
|
|
|
|
|
/// Returns y if x < y; otherwise, it returns x.
|
|
|
|
|
///
|
|
|
|
@ -215,7 +215,7 @@ namespace glm |
|
|
|
|
/// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/max.xml">GLSL max man page</a>
|
|
|
|
|
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
|
|
|
|
|
template<length_t L, typename T, qualifier Q> |
|
|
|
|
GLM_FUNC_DECL vec<L, T, Q> max(vec<L, T, Q> const& x, T y); |
|
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> max(vec<L, T, Q> const& x, T y); |
|
|
|
|
|
|
|
|
|
/// Returns y if x < y; otherwise, it returns x.
|
|
|
|
|
///
|
|
|
|
@ -226,7 +226,7 @@ namespace glm |
|
|
|
|
/// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/max.xml">GLSL max man page</a>
|
|
|
|
|
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
|
|
|
|
|
template<length_t L, typename T, qualifier Q> |
|
|
|
|
GLM_FUNC_DECL vec<L, T, Q> max(vec<L, T, Q> const& x, vec<L, T, Q> const& y); |
|
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> max(vec<L, T, Q> const& x, vec<L, T, Q> const& y); |
|
|
|
|
|
|
|
|
|
/// Returns min(max(x, minVal), maxVal) for each component in x
|
|
|
|
|
/// using the floating-point values minVal and maxVal.
|
|
|
|
@ -236,7 +236,7 @@ namespace glm |
|
|
|
|
/// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/clamp.xml">GLSL clamp man page</a>
|
|
|
|
|
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
|
|
|
|
|
template<typename genType> |
|
|
|
|
GLM_FUNC_DECL genType clamp(genType x, genType minVal, genType maxVal); |
|
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR genType clamp(genType x, genType minVal, genType maxVal); |
|
|
|
|
|
|
|
|
|
/// Returns min(max(x, minVal), maxVal) for each component in x
|
|
|
|
|
/// using the floating-point values minVal and maxVal.
|
|
|
|
@ -248,7 +248,7 @@ namespace glm |
|
|
|
|
/// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/clamp.xml">GLSL clamp man page</a>
|
|
|
|
|
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
|
|
|
|
|
template<length_t L, typename T, qualifier Q> |
|
|
|
|
GLM_FUNC_DECL vec<L, T, Q> clamp(vec<L, T, Q> const& x, T minVal, T maxVal); |
|
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> clamp(vec<L, T, Q> const& x, T minVal, T maxVal); |
|
|
|
|
|
|
|
|
|
/// Returns min(max(x, minVal), maxVal) for each component in x
|
|
|
|
|
/// using the floating-point values minVal and maxVal.
|
|
|
|
@ -260,7 +260,7 @@ namespace glm |
|
|
|
|
/// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/clamp.xml">GLSL clamp man page</a>
|
|
|
|
|
/// @see <a href="http://www.opengl.org/registry/doc/GLSLangSpec.4.20.8.pdf">GLSL 4.20.8 specification, section 8.3 Common Functions</a>
|
|
|
|
|
template<length_t L, typename T, qualifier Q> |
|
|
|
|
GLM_FUNC_DECL vec<L, T, Q> clamp(vec<L, T, Q> const& x, vec<L, T, Q> const& minVal, vec<L, T, Q> const& maxVal); |
|
|
|
|
GLM_FUNC_DECL GLM_CONSTEXPR vec<L, T, Q> clamp(vec<L, T, Q> const& x, vec<L, T, Q> const& minVal, vec<L, T, Q> const& maxVal); |
|
|
|
|
|
|
|
|
|
/// If genTypeU is a floating scalar or vector:
|
|
|
|
|
/// Returns x * (1.0 - a) + y * a, i.e., the linear blend of
|
|
|
|
|