aboutsummaryrefslogtreecommitdiff
path: root/src/vector.hpp
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-01-24 18:13:44 +0100
committerJulian T <julian@jtle.dk>2021-01-24 18:22:11 +0100
commit41ea2d8f94043d49fc26aaaa8030a73dcfdc2da9 (patch)
treefcc07052425c65b38c1724f4fc30299a1cb48716 /src/vector.hpp
parenta38e6014ea5441e9d29fcb3b5607cd94e4061cff (diff)
Create rust project
Diffstat (limited to 'src/vector.hpp')
-rw-r--r--src/vector.hpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/src/vector.hpp b/src/vector.hpp
deleted file mode 100644
index 20e8210..0000000
--- a/src/vector.hpp
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef VECTOR_H
-#define VECTOR_H
-
-#include <iostream>
-
-class Vec3d {
- public:
- Vec3d();
- Vec3d(double x, double y, double z);
-
- void set(double x, double y, double z);
- void normalize();
-
- double length() const;
- double dot(const Vec3d &vec) const;
-
- Vec3d cross(const Vec3d &vec) const;
-
- // Operators
- Vec3d operator+(const Vec3d &vec) const;
- Vec3d& operator+=(const Vec3d &vec);
- Vec3d operator-(const Vec3d &vec) const;
- Vec3d operator-() const;
- Vec3d operator*(double) const;
- Vec3d operator*(const Vec3d &vec) const;
- Vec3d operator/(double) const;
-
- friend std::ostream& operator<<(std::ostream& os, const Vec3d &v);
-
- double m_x, m_y, m_z;
-};
-
-#endif