diff options
Diffstat (limited to 'app/source/Cplt/Utils/Math.hpp')
-rw-r--r-- | app/source/Cplt/Utils/Math.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/source/Cplt/Utils/Math.hpp b/app/source/Cplt/Utils/Math.hpp index da53da2..0e760c1 100644 --- a/app/source/Cplt/Utils/Math.hpp +++ b/app/source/Cplt/Utils/Math.hpp @@ -3,8 +3,7 @@ namespace MathUtils { template <class T> -constexpr T Abs(T t) -{ +constexpr T Abs(T t) { return t < 0 ? -t : t; } |