classPii::Bound
#include <PiiMathFunctional.h>
A unary function that bounds its argument to a predefined range.
Inherits Pii::UnaryFunction< T >
Description
If the argument is less than min, min will be returned. If the argument is larger than max, max will be returned. Otherwise, the argument will be returned unchanged.
Constructors and destructor
|
(
|
Public member functions
|
T
|
(
|
Function details
-
Bound
(- T min
- T max
[inline] -
T operator()
(- const T & value
[inline]
Add a note
Not a single note added yet. Be the first, add yours.