From 3bb587f0d7c471a70683fa7d26939d21968dea98 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 2 Sep 2018 10:08:58 +0800 Subject: *update --- src/libjin/Math/Vector.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/libjin/Math/Vector.cpp') diff --git a/src/libjin/Math/Vector.cpp b/src/libjin/Math/Vector.cpp index f26d0c4..3e44d70 100644 --- a/src/libjin/Math/Vector.cpp +++ b/src/libjin/Math/Vector.cpp @@ -1,2 +1,24 @@ #include "vector.h" +namespace jin +{ +namespace math +{ + + Vector2::Vector2() + :x(0), y(0) + { + } + + Vector2::Vector2(float _x, float _y) + : x(_x), y(_y) + { + }; + + Vector2::Vector2(const Vector2& v) + : x(v.x), y(v.y) + { + } + +} +} \ No newline at end of file -- cgit v1.1-26-g67d0