mirror of
https://github.com/PrimeDecomp/prime.git
synced 2025-12-09 05:47:40 +00:00
DolphinCColor imps, only Lerp(u32, u32, float) isn't matching
This commit is contained in:
15
include/rstl/algorithm.hpp
Normal file
15
include/rstl/algorithm.hpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user