aboutsummaryrefslogtreecommitdiff
path: root/src/core/vector.cpp
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-01-17 00:09:15 +0100
committerJulian T <julian@jtle.dk>2021-01-17 00:09:15 +0100
commit94217187eb2785939458f08d96c7b1b9e55439ab (patch)
treeb10e4ab95f213b13b90ac5e0053ed9e92f973693 /src/core/vector.cpp
parented14718ff073e285374fad2d3471552b9b497825 (diff)
Minor changed and draft for random samplingold_rework
Diffstat (limited to 'src/core/vector.cpp')
-rw-r--r--src/core/vector.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/core/vector.cpp b/src/core/vector.cpp
index 51d8e2e..c790741 100644
--- a/src/core/vector.cpp
+++ b/src/core/vector.cpp
@@ -1,8 +1,22 @@
#include "vector.hpp"
+#include <cmath>
#include <math.h>
#include <stdexcept>
+Vec2d::Vec2d() {
+ set(0, 0);
+}
+
+Vec2d::Vec2d(double x, double y) {
+ set(x, y);
+}
+
+void Vec2d::set(double x, double y) {
+ m_x = x;
+ m_y = y;
+}
+
Vec3d::Vec3d() {
set(0, 0, 0);
}