summaryrefslogtreecommitdiffhomepage
path: root/Utils.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-05-17 19:36:15 +0200
committerAki <please@ignore.pl>2022-05-17 19:50:04 +0200
commit21341f788654cfc806778fa34d09885431083d76 (patch)
tree313cf15a37ed1f34b5807874a2a03ca8f421aeeb /Utils.h
parente9115c36c3580b209f7b53692deb52905125256e (diff)
downloadderelict-21341f788654cfc806778fa34d09885431083d76.zip
derelict-21341f788654cfc806778fa34d09885431083d76.tar.gz
derelict-21341f788654cfc806778fa34d09885431083d76.tar.bz2
Created a function for repeated distance calculations
Diffstat (limited to 'Utils.h')
-rw-r--r--Utils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Utils.h b/Utils.h
new file mode 100644
index 0000000..b582540
--- /dev/null
+++ b/Utils.h
@@ -0,0 +1,8 @@
+#pragma once
+
+
+template <typename V, typename T=decltype(V::x)> T dist2(const V& lhs, const V& rhs);
+template <typename V, typename T=decltype(V::x)> T dist3(const V& lhs, const V& rhs);
+
+
+#include "Utils-inl.h"