![]() |
0.9.9 API documentation
|
Exposes min and max functions for 3 to 4 vector parameters. More...
Functions | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | clamp (vec< L, T, Q > const &Texcoord) |
Simulate GL_CLAMP OpenGL wrap mode. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | fclamp (vec< L, T, Q > const &x, T minVal, T maxVal) |
Returns min(max(x, minVal), maxVal) for each component in x. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | fclamp (vec< L, T, Q > const &x, vec< L, T, Q > const &minVal, vec< L, T, Q > const &maxVal) |
Returns min(max(x, minVal), maxVal) for each component in x. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | fmax (vec< L, T, Q > const &a, T b) |
Returns y if x < y; otherwise, it returns x. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | fmax (vec< L, T, Q > const &a, vec< L, T, Q > const &b) |
Returns y if x < y; otherwise, it returns x. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | fmax (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c) |
Returns y if x < y; otherwise, it returns x. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | fmax (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d) |
Returns y if x < y; otherwise, it returns x. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | fmin (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c) |
Returns y if y < x; otherwise, it returns x. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | fmin (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d) |
Returns y if y < x; otherwise, it returns x. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | fmin (vec< L, T, Q > const &x, T y) |
Returns y if y < x; otherwise, it returns x. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | fmin (vec< L, T, Q > const &x, vec< L, T, Q > const &y) |
Returns y if y < x; otherwise, it returns x. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > | max (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &z) |
Return the maximum component-wise values of 3 inputs. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > | max (vec< L, T, Q > const &x, vec< L, T, Q > const &y, vec< L, T, Q > const &z, vec< L, T, Q > const &w) |
Return the maximum component-wise values of 4 inputs. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > | min (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c) |
Return the minimum component-wise values of 3 inputs. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > | min (vec< L, T, Q > const &a, vec< L, T, Q > const &b, vec< L, T, Q > const &c, vec< L, T, Q > const &d) |
Return the minimum component-wise values of 4 inputs. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | mirrorClamp (vec< L, T, Q > const &Texcoord) |
Simulate GL_MIRRORED_REPEAT OpenGL wrap mode. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | mirrorRepeat (vec< L, T, Q > const &Texcoord) |
Simulate GL_MIRROR_REPEAT OpenGL wrap mode. | |
template<length_t L, typename T , qualifier Q> | |
GLM_FUNC_DECL vec< L, T, Q > | repeat (vec< L, T, Q > const &Texcoord) |
Simulate GL_REPEAT OpenGL wrap mode. | |
Exposes min and max functions for 3 to 4 vector parameters.
Include <glm/ext/vector_common.hpp> to use the features of this extension.
GLM_FUNC_DECL vec< L, T, Q > clamp | ( | vec< L, T, Q > const & | Texcoord | ) |
Simulate GL_CLAMP OpenGL wrap mode.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL vec< L, T, Q > fclamp | ( | vec< L, T, Q > const & | x, |
T | minVal, | ||
T | maxVal | ||
) |
Returns min(max(x, minVal), maxVal) for each component in x.
If one of the two arguments is NaN, the value of the other argument is returned.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL vec< L, T, Q > fclamp | ( | vec< L, T, Q > const & | x, |
vec< L, T, Q > const & | minVal, | ||
vec< L, T, Q > const & | maxVal | ||
) |
Returns min(max(x, minVal), maxVal) for each component in x.
If one of the two arguments is NaN, the value of the other argument is returned.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL vec< L, T, Q > fmax | ( | vec< L, T, Q > const & | a, |
T | b | ||
) |
Returns y if x < y; otherwise, it returns x.
If one of the two arguments is NaN, the value of the other argument is returned.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL vec< L, T, Q > fmax | ( | vec< L, T, Q > const & | a, |
vec< L, T, Q > const & | b | ||
) |
Returns y if x < y; otherwise, it returns x.
If one of the two arguments is NaN, the value of the other argument is returned.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL vec< L, T, Q > fmax | ( | vec< L, T, Q > const & | a, |
vec< L, T, Q > const & | b, | ||
vec< L, T, Q > const & | c | ||
) |
Returns y if x < y; otherwise, it returns x.
If one of the two arguments is NaN, the value of the other argument is returned.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL vec< L, T, Q > fmax | ( | vec< L, T, Q > const & | a, |
vec< L, T, Q > const & | b, | ||
vec< L, T, Q > const & | c, | ||
vec< L, T, Q > const & | d | ||
) |
Returns y if x < y; otherwise, it returns x.
If one of the two arguments is NaN, the value of the other argument is returned.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL vec< L, T, Q > fmin | ( | vec< L, T, Q > const & | a, |
vec< L, T, Q > const & | b, | ||
vec< L, T, Q > const & | c | ||
) |
Returns y if y < x; otherwise, it returns x.
If one of the two arguments is NaN, the value of the other argument is returned.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL vec< L, T, Q > fmin | ( | vec< L, T, Q > const & | a, |
vec< L, T, Q > const & | b, | ||
vec< L, T, Q > const & | c, | ||
vec< L, T, Q > const & | d | ||
) |
Returns y if y < x; otherwise, it returns x.
If one of the two arguments is NaN, the value of the other argument is returned.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL vec< L, T, Q > fmin | ( | vec< L, T, Q > const & | x, |
T | y | ||
) |
Returns y if y < x; otherwise, it returns x.
If one of the two arguments is NaN, the value of the other argument is returned.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL vec< L, T, Q > fmin | ( | vec< L, T, Q > const & | x, |
vec< L, T, Q > const & | y | ||
) |
Returns y if y < x; otherwise, it returns x.
If one of the two arguments is NaN, the value of the other argument is returned.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > max | ( | vec< L, T, Q > const & | x, |
vec< L, T, Q > const & | y, | ||
vec< L, T, Q > const & | z | ||
) |
Return the maximum component-wise values of 3 inputs.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point or integer scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > max | ( | vec< L, T, Q > const & | x, |
vec< L, T, Q > const & | y, | ||
vec< L, T, Q > const & | z, | ||
vec< L, T, Q > const & | w | ||
) |
Return the maximum component-wise values of 4 inputs.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point or integer scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > min | ( | vec< L, T, Q > const & | a, |
vec< L, T, Q > const & | b, | ||
vec< L, T, Q > const & | c | ||
) |
Return the minimum component-wise values of 3 inputs.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point or integer scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL GLM_CONSTEXPR vec< L, T, Q > min | ( | vec< L, T, Q > const & | a, |
vec< L, T, Q > const & | b, | ||
vec< L, T, Q > const & | c, | ||
vec< L, T, Q > const & | d | ||
) |
Return the minimum component-wise values of 4 inputs.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point or integer scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL vec< L, T, Q > mirrorClamp | ( | vec< L, T, Q > const & | Texcoord | ) |
Simulate GL_MIRRORED_REPEAT OpenGL wrap mode.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL vec< L, T, Q > mirrorRepeat | ( | vec< L, T, Q > const & | Texcoord | ) |
Simulate GL_MIRROR_REPEAT OpenGL wrap mode.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |
GLM_FUNC_DECL vec< L, T, Q > repeat | ( | vec< L, T, Q > const & | Texcoord | ) |
Simulate GL_REPEAT OpenGL wrap mode.
L | Integer between 1 and 4 included that qualify the dimension of the vector |
T | Floating-point scalar types |
Q | Value from qualifier enum |