From 94217187eb2785939458f08d96c7b1b9e55439ab Mon Sep 17 00:00:00 2001 From: Julian T Date: Sun, 17 Jan 2021 00:09:15 +0100 Subject: Minor changed and draft for random sampling --- src/core/vector.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/core/vector.cpp') 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 #include #include +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); } -- cgit v1.2.3