Return the -input2 in input1 is lesser than -input2, input2 if input 1 is greater than input2 and input1 otherwise. The operator doesn't test if input2 is negative.
More...
#include <vctBinaryOperations.h>
template<class _outputType, class _input1Type = _outputType, class _input2Type = _outputType>
class vctBinaryOperations< _outputType, _input1Type, _input2Type >::ClipIn
Return the -input2 in input1 is lesser than -input2, input2 if input 1 is greater than input2 and input1 otherwise. The operator doesn't test if input2 is negative.
- See Also
- vctBinaryOperations input1 capped in range [-input2, input2]. Note that here all arguments are of the same type, because they have to be compared.
template<class _outputType , class _input1Type = _outputType, class _input2Type = _outputType>
template<class _outputType , class _input1Type = _outputType, class _input2Type = _outputType>
template<class _outputType , class _input1Type = _outputType, class _input2Type = _outputType>
Execute the operation.
- Parameters
-
input1 | First operand. |
input2 | Second operand. |
The documentation for this class was generated from the following file: