summaryrefslogtreecommitdiff
path: root/Runtime/Math
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Math')
-rw-r--r--Runtime/Math/Vector2.cpp4
-rw-r--r--Runtime/Math/Vector2.h49
2 files changed, 28 insertions, 25 deletions
diff --git a/Runtime/Math/Vector2.cpp b/Runtime/Math/Vector2.cpp
index 2b70b24..185e66f 100644
--- a/Runtime/Math/Vector2.cpp
+++ b/Runtime/Math/Vector2.cpp
@@ -1,4 +1,4 @@
#include "Vector2.h"
-Vector2 Vector2::one = Vector2(1, 1);
-Vector2 Vector2::zero = Vector2(0, 0);
+Internal::Vector2 Internal::Vector2::one = Internal::Vector2(1, 1);
+Internal::Vector2 Internal::Vector2::zero = Internal::Vector2(0, 0);
diff --git a/Runtime/Math/Vector2.h b/Runtime/Math/Vector2.h
index 5fb230c..27cf312 100644
--- a/Runtime/Math/Vector2.h
+++ b/Runtime/Math/Vector2.h
@@ -1,30 +1,33 @@
#pragma once
-struct Vector2
+namespace Internal
{
- Vector2(float x=0, float y = 0)
- {
- this->x = x;
- this->y = y;
- }
- inline void Set(float x, float y)
- {
- this->x = x;
- this->y = y;
- }
+ struct Vector2
+ {
+ Vector2(float x = 0, float y = 0)
+ {
+ this->x = x;
+ this->y = y;
+ }
+ inline void Set(float x, float y)
+ {
+ this->x = x;
+ this->y = y;
+ }
- bool operator == (const Vector2& v) const
- {
- return v.x == x && v.y == y;
- }
+ bool operator == (const Vector2& v) const
+ {
+ return v.x == x && v.y == y;
+ }
- bool operator != (const Vector2& v) const
- {
- return v.x != x || v.y != y;
- }
+ bool operator != (const Vector2& v) const
+ {
+ return v.x != x || v.y != y;
+ }
- float x, y;
+ float x, y;
- static Vector2 zero;
- static Vector2 one;
-}; \ No newline at end of file
+ static Vector2 zero;
+ static Vector2 one;
+ };
+}