summaryrefslogtreecommitdiffstats
path: root/namespaces.hpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--namespaces.hpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/namespaces.hpp b/namespaces.hpp
new file mode 100644
index 0000000..dc8ef7c
--- /dev/null
+++ b/namespaces.hpp
@@ -0,0 +1,21 @@
+#pragma once
+
+// C++ introduces namespaces to separate various things
+// into logical blocks
+namespace math {
+ struct vec3i {
+ int x;
+ int y;
+ int z;
+ };
+
+ struct vec3d {
+ double x;
+ double y;
+ double z;
+ };
+
+
+ int dot(vec3i v, vec3i w);
+ double dot(vec3d v, vec3d w);
+}