aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/math/vector.cpp
diff options
context:
space:
mode:
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