aboutsummaryrefslogtreecommitdiff
path: root/src/vector.hpp
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-07-23 23:13:55 +0200
committerJulian T <julian@jtle.dk>2020-07-23 23:13:55 +0200
commit18960c4b88ce912e08b12182b835a7de75388b78 (patch)
treefd3994dc07a07298824521000bde1683461e5262 /src/vector.hpp
parent13a7b10ab0efa82a24187cdfb2cf2a55691568f0 (diff)
New project structure
Diffstat (limited to 'src/vector.hpp')
-rw-r--r--src/vector.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/vector.hpp b/src/vector.hpp
new file mode 100644
index 0000000..6d15f34
--- /dev/null
+++ b/src/vector.hpp
@@ -0,0 +1,18 @@
+#ifndef VECTOR_H
+#define VECTOR_H
+
+class Vec3d {
+ Vec3d();
+ Vec3d(double x, double y, double z);
+
+ void set(double x, double y, double z);
+ void normalize();
+
+ double length();
+
+ Vec3d cross(const Vec3d &vec);
+
+ // Operators
+};
+
+#endif