summaryrefslogtreecommitdiff
path: root/common/vec2.h
diff options
context:
space:
mode:
authora1xd <[email protected]>2020-07-22 19:34:13 -0400
committera1xd <[email protected]>2020-07-22 19:34:13 -0400
commit78156f34166c110fcad47aef166684b8e25ac4fa (patch)
treeb6121a5e1725639800c266c865f9067b3cd31a17 /common/vec2.h
parentAdd .gitignore and .gitattributes. (diff)
downloadrawaccel-0.1-test.tar.xz
rawaccel-0.1-test.zip
Add project files.v0.1-test
Diffstat (limited to 'common/vec2.h')
-rw-r--r--common/vec2.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/vec2.h b/common/vec2.h
new file mode 100644
index 0000000..6484e69
--- /dev/null
+++ b/common/vec2.h
@@ -0,0 +1,9 @@
+#pragma once
+
+template <typename T>
+struct vec2 {
+ T x;
+ T y;
+};
+
+using vec2d = vec2<double>;