From 9a47bddb73ce150a233bce033e3d4aabbf429b15 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Mon, 28 Sep 2020 11:03:19 +0300 Subject: [PATCH] Add math utilities header & sqr function --- libs/geom/include/psemek/geom/math.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 libs/geom/include/psemek/geom/math.hpp diff --git a/libs/geom/include/psemek/geom/math.hpp b/libs/geom/include/psemek/geom/math.hpp new file mode 100644 index 00000000..3890085a --- /dev/null +++ b/libs/geom/include/psemek/geom/math.hpp @@ -0,0 +1,12 @@ +#pragma once + +namespace psemek::geom +{ + + template + auto sqr(T const & x) + { + return x * x; + } + +}