From 18960c4b88ce912e08b12182b835a7de75388b78 Mon Sep 17 00:00:00 2001 From: Julian T Date: Thu, 23 Jul 2020 23:13:55 +0200 Subject: New project structure --- src/vector.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/vector.hpp (limited to 'src/vector.hpp') 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 -- cgit v1.2.3