30 #ifndef MATH_IMPLEMENTATION_GUARD
31 #define MATH_IMPLEMENTATION_GUARD
43 template <
typename T_Input,
typename T_Output>
45 return static_cast<T_Output
>(input < 0.0 ? std::ceil(input - 0.5) : std::floor(input + 0.5));
51 #endif//MATH_IMPLEMENTATION_GUARD
static T_Output Round(const T_Input input)
Rounds input to the nearest integer.