summaryrefslogtreecommitdiff
path: root/Runtime/Math/Vector2.h
diff options
context:
space:
mode:
Diffstat (limited to 'Runtime/Math/Vector2.h')
-rw-r--r--Runtime/Math/Vector2.h49
1 files changed, 26 insertions, 23 deletions
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;
+ };
+}