BAN: Implement abs()

This commit is contained in:
Bananymous 2023-12-26 00:54:06 +02:00
parent 36590fb5c7
commit 861bf27e96
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@
namespace BAN::Math
{
template<typename T>
inline constexpr T abs(T val)
{
return val < 0 ? -val : val;
}
template<typename T>
inline constexpr T min(T a, T b)
{