prime/include/rstl/algorithm.hpp
Phillip Stephens da85e24623 DolphinCColor imps, only Lerp(u32, u32, float) isn't matching
Former-commit-id: d36775e76a66a5912bd40effbe201c7e0a74bcb0
2022-08-13 05:57:38 -07:00

16 lines
296 B
C++

#ifndef _RSTL_MATH_HPP
#define _RSTL_MATH_HPP
namespace rstl {
template <typename T>
inline const T& min_val(const T& a, const T& b) {
return (b < a) ? b : a;
}
template <typename T>
inline const T& max_val(const T& a, const T& b) {
return (a < b) ? b : a;
}
}
#endif // _RSTL_MATH_HPP