breakout/include/Math.h

9 lines
164 B
C++

namespace Math
{
template<typename T, typename U, typename V>
inline T max(U first, V second)
{
return static_cast<T>(first >= second ? first : second);
}
}