aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Math
diff options
context:
space:
mode:
Diffstat (limited to 'src/libjin/Math')
-rw-r--r--src/libjin/Math/Vector.cpp22
-rw-r--r--src/libjin/Math/Vector.h18
2 files changed, 36 insertions, 4 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
diff --git a/src/libjin/Math/Vector.h b/src/libjin/Math/Vector.h
index 43e249e..0fbdc87 100644
--- a/src/libjin/Math/Vector.h
+++ b/src/libjin/Math/Vector.h
@@ -5,10 +5,20 @@ namespace jin
{
namespace math
{
-
-
-}
-}
+ class Vector2
+ {
+ public:
+ Vector2();
+ Vector2(float _x, float _y);
+ Vector2(const Vector2& v);
+
+ float x;
+ float y;
+
+ };
+
+} // math
+} // jin
#endif \ No newline at end of file