aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Math/Vector.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-09-02 10:08:58 +0800
committerchai <chaifix@163.com>2018-09-02 10:08:58 +0800
commit3bb587f0d7c471a70683fa7d26939d21968dea98 (patch)
tree6ef9e75b5159dda0a8d1dc4ef8640be4eacc6343 /src/libjin/Math/Vector.cpp
parent862763a88f6b4a6cb6c034287c509a91776adf8b (diff)
*update
Diffstat (limited to 'src/libjin/Math/Vector.cpp')
-rw-r--r--src/libjin/Math/Vector.cpp22
1 files changed, 22 insertions, 0 deletions
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