Convert numeric data types with proper rounding and clamping to the target value range.
The exact behaviour is defined as follows:
- integer target types: both positive and negative overflows clamp to the closest value of the target type.
- unsigned integer targets: negative input values give always 0
- double-to-single floats: overflows clamp, Inf and NaN is kept as is
- float-to-integer: rounding to nearest integer
- bool targets: any non-zero value (after rounding to nearest integer) is true (also negative values)
Definition at line 123 of file NumericConverter.h.