ext_scalar_common Module Reference
Exposes min and max functions for 3 to 4 scalar parameters.
Include < glm/ext/scalar_common.hpp > to use the features of this extension.
Public Member Functions
-
min (T a, T b, T c)
Returns the minimum component-wise values of 3 inputs
T
A floating-point scalar type.
-
min (T a, T b, T c, T d)
Returns the minimum component-wise values of 4 inputs
T
A floating-point scalar type.
-
max (T a, T b, T c)
Returns the maximum component-wise values of 3 inputs
T
A floating-point scalar type.
-
max (T a, T b, T c, T d)
Returns the maximum component-wise values of 4 inputs
T
A floating-point scalar type.
-
fmin (T a, T b)
Returns the minimum component-wise values of 2 inputs. If one of the two arguments is NaN, the value of the other argument is returned.
T
A floating-point scalar type.
- See Also
-
fmin (T a, T b, T c)
Returns the minimum component-wise values of 3 inputs. If one of the two arguments is NaN, the value of the other argument is returned.
T
A floating-point scalar type.
- See Also
-
fmin (T a, T b, T c, T d)
Returns the minimum component-wise values of 4 inputs. If one of the two arguments is NaN, the value of the other argument is returned.
T
A floating-point scalar type.
- See Also
-
fmax (T a, T b)
Returns the maximum component-wise values of 2 inputs. If one of the two arguments is NaN, the value of the other argument is returned.
T
A floating-point scalar type.
- See Also
-
fmax (T a, T b, T C)
Returns the maximum component-wise values of 3 inputs. If one of the two arguments is NaN, the value of the other argument is returned.
T
A floating-point scalar type.
- See Also
-
fmax (T a, T b, T C, T D)
Returns the maximum component-wise values of 4 inputs. If one of the two arguments is NaN, the value of the other argument is returned.
T
A floating-point scalar type.
- See Also