Overloaded max/min for int3 and removed old comments

This commit is contained in:
jpekkila
2019-07-04 16:24:08 +03:00
parent e1d545b0eb
commit a53e0a170d
2 changed files with 20 additions and 21 deletions

View File

@@ -42,6 +42,18 @@ min(const T& a, const T& b)
return a < b ? a : b;
}
static inline const int3
max(const int3& a, const int3& b)
{
return (int3){max(a.x, b.x), max(a.y, b.y), max(a.z, b.z)};
}
static inline const int3
min(const int3& a, const int3& b)
{
return (int3){min(a.x, b.x), min(a.y, b.y), min(a.z, b.z)};
}
template <class T>
static inline const T
sum(const T& a, const T& b)