gtx_extended_min_max Module Reference
Include <glm/gtx/extented_min_max.hpp> to use the features of this extension.
Min and max functions for 3 to 4 parameters.
Public Member Functions
-
GLM_FUNC_DECL Tmin (T const &x, T const &y, T const &z)
Return the minimum component-wise values of 3 inputs
- See Also
gtx_extented_min_max
-
GLM_FUNC_DECL C< T >min (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z)
Return the minimum component-wise values of 3 inputs
- See Also
gtx_extented_min_max
-
GLM_FUNC_DECL C< T >min (C< T > const &x, C< T > const &y, C< T > const &z)
Return the minimum component-wise values of 3 inputs
- See Also
gtx_extented_min_max
-
GLM_FUNC_DECL Tmin (T const &x, T const &y, T const &z, T const &w)
Return the minimum component-wise values of 4 inputs
- See Also
gtx_extented_min_max
-
GLM_FUNC_DECL C< T >min (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w)
Return the minimum component-wise values of 4 inputs
- See Also
gtx_extented_min_max
-
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
- See Also
gtx_extented_min_max
-
GLM_FUNC_DECL Tmax (T const &x, T const &y, T const &z)
Return the maximum component-wise values of 3 inputs
- See Also
gtx_extented_min_max
-
GLM_FUNC_DECL C< T >max (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z)
Return the maximum component-wise values of 3 inputs
- See Also
gtx_extented_min_max
-
GLM_FUNC_DECL C< T >max (C< T > const &x, C< T > const &y, C< T > const &z)
Return the maximum component-wise values of 3 inputs
- See Also
gtx_extented_min_max
-
GLM_FUNC_DECL Tmax (T const &x, T const &y, T const &z, T const &w)
Return the maximum component-wise values of 4 inputs
- See Also
gtx_extented_min_max
-
GLM_FUNC_DECL C< T >max (C< T > const &x, typename C< T >::T const &y, typename C< T >::T const &z, typename C< T >::T const &w)
Return the maximum component-wise values of 4 inputs
- See Also
gtx_extented_min_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
- See Also
gtx_extented_min_max
-
GLM_FUNC_DECL genTypefmin (genType x, genType 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.
genType
Floating-point or integer; scalar or vector types.
- See Also
gtx_extented_min_max
-
GLM_FUNC_DECL genTypefmax (genType x, genType y)
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.
genType
Floating-point; scalar or vector types.
- See Also
gtx_extented_min_max
- See Also
-
GLM_FUNC_DECL genTypefclamp (genType x, genType minVal, genType 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.
genType
Floating-point scalar or vector types.
- See Also
gtx_extented_min_max
-
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
TFloating-point scalar types
QValue from qualifier enum
- See Also
gtx_extented_min_max
-
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
TFloating-point scalar types
QValue from qualifier enum
- See Also
gtx_extented_min_max