From 7fe47a9d5b1727a61dc724523b530762f6d6ba19 Mon Sep 17 00:00:00 2001 From: rtk0c Date: Thu, 30 Jun 2022 21:38:53 -0700 Subject: Restructure project --- app/source/Cplt/Utils/Math.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 app/source/Cplt/Utils/Math.hpp (limited to 'app/source/Cplt/Utils/Math.hpp') diff --git a/app/source/Cplt/Utils/Math.hpp b/app/source/Cplt/Utils/Math.hpp new file mode 100644 index 0000000..da53da2 --- /dev/null +++ b/app/source/Cplt/Utils/Math.hpp @@ -0,0 +1,11 @@ +#pragma once + +namespace MathUtils { + +template +constexpr T Abs(T t) +{ + return t < 0 ? -t : t; +} + +} // namespace MathUtils -- cgit v1.2.3-70-g09d2