summaryrefslogtreecommitdiff
path: root/Data/BuiltIn
diff options
context:
space:
mode:
Diffstat (limited to 'Data/BuiltIn')
-rw-r--r--Data/BuiltIn/Libraries/GameLab/Engine/Math/Vector2.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/Data/BuiltIn/Libraries/GameLab/Engine/Math/Vector2.lua b/Data/BuiltIn/Libraries/GameLab/Engine/Math/Vector2.lua
index 24aa233..0fd66c9 100644
--- a/Data/BuiltIn/Libraries/GameLab/Engine/Math/Vector2.lua
+++ b/Data/BuiltIn/Libraries/GameLab/Engine/Math/Vector2.lua
@@ -26,6 +26,14 @@ function Vector2:get_yx()
return v
end
+function Vector2:get_height()
+ return self.y
+end
+
+function Vector2:get_width()
+ return self.x
+end
+
function Vector2:Set(other)
self.x = other.x
self.y = other.y